Jump to content
The Uniform Server Community

Getting warning, can I turn off warnings?


Recommended Posts

Posted

Using :$query = "select clientname, jobnumber, Date, id from timesheets.stanger WHERE " . $what . " LIKE '%$SearchText%'";

 

I then do this:

MYSQL_result($result,0,0);

 

which gives thie warning is the page displayd output:

Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 3 in W:\www\flash\test2.php on line 23

 

Everything works fine on this page,but when nothing is found from the 'search' then that warning message pops up. How do I turn off that warning message so it is not displayed in my webpage when there is a search that yeilds no results?

 

I want errors to display just not a pointless warning.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...