05-13-2012, 11:26 AM
|
|
|
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Quote:
Originally Posted by roly
thanks for all the replys guys, this is roughly the php code i've got
Code:
$sql = "select foo from bar where catid = $cat limit 20";
$result = mysql_query($sql ,$db);
while ($myrow = mysql_fetch_array($result))
{
echo $myrow['something'];
}
i want to copy the output of that into a text file as discussed so that i can include it in a file, how do i do that? fopen? any idea how i would write it?
|
http://php.net/manual/en/function.fwrite.php
__________________
I like pie.
|
|
|