Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : dbx Functions : dbx_error

dbx_error

Report the error message of the latest function call in the module (PHP 4 >= 4.0.6, PHP 5 <= 5.0.5, PECL dbx:1.1.0)
string dbx_error ( object link_identifier )

Example 490. dbx_error() example

<?php
$link  
= dbx_connect(DBX_MYSQL, "localhost", "db", "username", "password")
   or die(
"Could not connect");

$result = dbx_query($link, "select id from non_existing_table");
if (
$result == 0) {
   echo
dbx_error($link);
}
dbx_close($link);
?>

Change Language


Follow Navioo On Twitter
dbx_close
dbx_compare
dbx_connect
dbx_error
dbx_escape_string
dbx_fetch_row
dbx_query
dbx_sort
eXTReMe Tracker