Help - Search - Members - Calendar
Full Version: Getting warning, can I turn off warnings?
The Uniform Server BBoard > Support > Uniform Server - Windows > MySQL
DanielA
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.
olajideolaolorun
Use '@' in front of the function.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.