Quote:
Originally Posted by AndrewX
At those lines the warning appears, change mysql_fetch_array to @mysql_fetch_array
It will make it silent.
|
you get the error because you dont check if the result is valid
what good is making it silent if he needs for debugging assuming its not a live site and if it is a live site then set display_errors off in php config and then check error log, but add some code to handle that issue checking the result var
Also you should move away from mysql library at the very least use mysqli. The Mysql lib will be deprecated in php's future and its an old library that lacks support in many things