MySQL and PHP
Copyright 1997-2021 the PHP Documentation Group.
DatabaseObject::existsInDatabase
Check if object exists in database
abstract public bool mysql_xdevapi\DatabaseObject::existsInDatabase();
Verifies if the database object refers to an object that exists in the database.
This function has no parameters.
Returns true
if object exists in the
database, else false
if it does not.
Example 5.74 mysql_xdevapi\DatabaseObject::existsInDatabase
example
<?php $existInDb = $dbObj->existsInDatabase(); ?>