Menu
Hello,
I have the following:
[code=php]
$q=”SELECT * FROM `bigTable`”; //get loads of rows
echo $q.”<br>”; //display that $q is as expected
$r=mysql_query($q); //run the query
if ($r){echo “yay!”;} //result found. display yay!
This works on its own in a test page. But if I copy and paste it into a larger file, the $q is echoed but “yay!” is not.
For troubleshooting, if I copy the echoed $q value into phpmyadmin and run it there, I get the rows as expected.
Any ideas why this is happening? (or not happening?)