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.