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
nhan
Forum Commoner
Posts: 95 Joined: Sun Feb 27, 2005 8:26 pm
Contact:
Post
by nhan » Tue Mar 29, 2005 11:42 pm
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
ol4pr0
Forum Regular
Posts: 926 Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador
Post
by ol4pr0 » Tue Mar 29, 2005 11:46 pm
Yes by using a @ infront of the queries
for example
Code: Select all
@mysql_query = "" // ect..
#or
@mysql_fetch_array = "" //ect..
nhan
Forum Commoner
Posts: 95 Joined: Sun Feb 27, 2005 8:26 pm
Contact:
Post
by nhan » Tue Mar 29, 2005 11:54 pm
thank you so much!
--regards,
nhan
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Mar 30, 2005 12:11 am
I'd seriously recommend properly coding so those warnings don't happen instead of trying to hide them.
ol4pr0
Forum Regular
Posts: 926 Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador
Post
by ol4pr0 » Wed Mar 30, 2005 12:14 am
Amen to that!