View Single Post
Old 05-13-2012, 11:24 AM  
roly
Confirmed User
 
Join Date: Aug 2002
Posts: 1,844
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?

Last edited by roly; 05-13-2012 at 11:25 AM..
roly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote