If you run a sql search and the result is negative, meaning the word isn't found in the database what should I write.
How can I put an if/else statement?PHP Code:$sql = "SELECT * FROM [I]TABLENAME[/I] WHERE this='".$this."' or this='".$that."' ";
$result = mysql_query($sql) OR exit( 'Error: ' . mysql_error() );
while($row = mysql_fetch_array($result)){}
if it finds $this but doesn't find $that?




Reply With Quote