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?