|
Main (PHP)
3rd Party Streams
Resources
Code Snippets
Affiliates
|
|
|
|
| |
DB::isError()DB::isError() -- Determines if a variable is a DB_Error object Description
Checks whether a result code from a DB method is a
DB_Error object or not.
Parameter
- mixed
$value
Variable to check
Return value
boolean - TRUE if $value
is a DB_Error object
NoteThis function should be called
statically. ExampleExample 26-1. Using isError() <?php
require_once 'DB.php';
$db =& DB::connect('pgsql://usr:pw@oxyscrip.ipowermysql.com/dbnam');
if (DB::isError($db)) {
die($db->getMessage());
}
?> |
|
|
|
|
| |
|
|
|
Top Sponsor
Sponsors
Sponsors
Advertisting
Affiliates
|
|