Warning

Codes here !

Moderators: macek, egami, gesf

border20
New php-forum User
New php-forum User
Posts: 32
Joined: Tue Jan 28, 2003 10:19 am
Location: Québec
Contact:

Warning

Postby border20 » Mon Feb 03, 2003 3:32 pm

I have to followind line to check if an ID has a reccord.

if(mysql_result($result,0,"id"))

if there is no record by that ID, i get a warning,,, how to a stop the display of this warning ??

thx

Tony121076
New php-forum User
New php-forum User
Posts: 28
Joined: Fri Jan 03, 2003 4:00 pm

Supress the warning

Postby Tony121076 » Mon Feb 03, 2003 4:22 pm

Try adding a @ in front of your line like this...

@if(mysql_result($result,0,"id"))

User avatar
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby Oleg Butuzov » Tue Feb 04, 2003 12:54 am

error_reporting(0);


Return to “mySQL & php coding”

Who is online

Users browsing this forum: No registered users and 1 guest