Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

Warning

Codes here !

Moderators: macek, egami, gesf

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
border20
New php-forum User
New php-forum User
 
Posts: 32
Joined: Tue Jan 28, 2003 10:19 am
Location: Québec

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"))
Tony121076
New php-forum User
New php-forum User
 
Posts: 28
Joined: Fri Jan 03, 2003 4:00 pm

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

error_reporting(0);
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am


Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.