disable warning messages

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!

Moderator: General Moderators

Post Reply
User avatar
nhan
Forum Commoner
Posts: 95
Joined: Sun Feb 27, 2005 8:26 pm
Contact:

disable warning messages

Post 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
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Yes by using a @ infront of the queries


for example

Code: Select all

@mysql_query = "" // ect..
#or 
@mysql_fetch_array = "" //ect..
User avatar
nhan
Forum Commoner
Posts: 95
Joined: Sun Feb 27, 2005 8:26 pm
Contact:

Post by nhan »

thank you so much!
--regards,

nhan
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'd seriously recommend properly coding so those warnings don't happen instead of trying to hide them. :?
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Amen to that!
Post Reply