Page 1 of 1

disable warning messages

Posted: Tue Mar 29, 2005 11:42 pm
by nhan
is there a way i can disable these warning messages? my code seems to work fine...

"Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 4 in /usr/local/apache/main2.php on line 124"


thanks!

--nhan

Posted: Tue Mar 29, 2005 11:46 pm
by ol4pr0
Yes by using a @ infront of the queries


for example

Code: Select all

@mysql_query = "" // ect..
#or 
@mysql_fetch_array = "" //ect..

Posted: Tue Mar 29, 2005 11:54 pm
by nhan
thank you so much!
--regards,

nhan

Posted: Wed Mar 30, 2005 12:11 am
by feyd
I'd seriously recommend properly coding so those warnings don't happen instead of trying to hide them. :?

Posted: Wed Mar 30, 2005 12:14 am
by ol4pr0
Amen to that!