Jump to content

[SOLVED] in php...


Lamez

Recommended Posts

if your criteria is going to meet one and only one row do

 

<?phph
$q = "Select count(*) as row_count from `Table` where this=that";
$r = mysql_query($q) or die(mysql_error()."<br /><br />".$q);
if(mysql_num_rows($r) >0){
    #The row exist
}
else{
   #The row of the given criteria is not there
}
?>

Link to comment
https://forums.phpfreaks.com/topic/88513-solved-in-php/#findComment-453110
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.