First problem :
Code: Select all
<?php
$db = mysql_connect(...);
mysql_select_db("...",$db);
$myquery= "SELECT * FROM ..... ";
$result = mysql_query($myquery);
$num_results=mysql_num_rows($result);
?>I have used the above code many times in the same site, and although it works fine in the other pages, in this one i get the error.
Any suggestions or hints???
Second problem
Code: Select all
<?php
$myquery2 = "SELECT * FROM .......... ";
$sql = mysql_query($myquery2);
while($row = mysql_fetch_array($sql))
{
// format results here
}
?>Also this code works in other pages, not on this one.
Any suggestions or tips??
Thanks