I have a problem trying to run a MySQL query through an "include()"-ed page.
Page A is as follows:
Now for Page B:
$query1 = "SELECT blah FROM blah....";
$result1 = mysql_query($query1);
//This query works, proving that the connect.php file has linked successfully.
//See Page B's code below
The problem is that this second query (the one in page B) never writes the result to Page A. I have tried adding the "include('connect.php');" line to Page B to ensure that it works, but it still doesn't. Any reasons why a query written in a different file won't execute from a page that include()s it?
$query2 = "SELECT blah FROM blah...";
$result2 = mysql_query($query2);
while($row2 = mysql_fetch_assoc($result2))