Warning

Codes here !

Moderators: egami, macek, gesf

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

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

Mon Feb 03, 2003 4:22 pm

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

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

Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Tue Feb 04, 2003 12:54 am

error_reporting(0);

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider] and 2 guests