Jump to content

how do I say if variable is empty?


futrose

Recommended Posts

$result2 will be a result resource if the query executed or it will be a false value if the query failed due to an error. A query that matches zero rows is a successful query.

 

You need to use mysqli_num_rows($result2) to check how many rows are in the result set.

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.