How to Check that a PHP Variable is a Mysql Resource How to check that a PHP variable is a mysql resource