PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
kr9091 wrote:
Oh thanks haha. How stupid of me. Well now I have another problem...I'm getting an error message for the "mysql_fetch_assoc()" on line 21.
That error would be.... ?
Try making Mysql show the error messages if it fails.
kr9091 wrote:
Oh thanks haha. How stupid of me. Well now I have another problem...I'm getting an error message for the "mysql_fetch_assoc()" on line 21.
That error would be.... ?
Try making Mysql show the error messages if it fails.
$result = mysql_query($sql) or die('Mysql Query Failed. <br>' . mysql_error());
The error reads: "Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\New_Blog\viewcat.php on line 21" also the page is failing to connect to my MySQL server. I get the following error message: "Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\New_Blog\viewcat.php on line 20" But the other pages on the site query just fine.