The special PHP function is_resource helps to do this.
So to check if a variable is a database result you may do the following:
<?php
if(is_resource($myVar))
{
...
}
?>
The special PHP function is_resource helps to do this.
So to check if a variable is a database result you may do the following:
<?php
if(is_resource($myVar))
{
...
}
?>