Jump to content

Condition for returned value after "SELECT" query using mysqli.


fluidsharp

Recommended Posts

Hello.

After "SELECT" my $var is equal object(mysqli_result)#2 (0) { }

and I done next:

if (empty($var)) 
{
I''ll fetch rows
}              else echo "Selected 0 rows";

 

It work but I want to know is this condition correct? Because I don't know exactly what does object(mysqli_result)#2 (0) { }  it means. And how to watch what this object contain.

Could you help?

 

Thanks

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.