Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

dbx error function syntax tag tutorial 2013





Alert! Connect with 10,000 Chating Online. Join Now

Php dbx error () function

Write your php code

 
<?php ?>

Php Result


Your code below



(PHP 4 >= 4.0.6, PHP 5)

dbx_error --  Report the error message of the latest function call in the module (not just in the connection)

Syntax

string dbx_error ( object link_identifier )

dbx_error() returns a string containing the error message from the last function call of the abstracted module (e.g. mysql module). If there are multiple connections in the same module, just the last error is given. If there are connections on different modules, the latest error is returned for the module specified by the link_identifier parameter.

Example 1. 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);
?>

Note: Always refer to the module-specific documentation as well.

The error message for Microsoft SQL Server is actually the result of the mssql_get_last_message() function.

The error message for Oracle (oci8) is not implemented (yet).

Php dbx error Function syntax tag

dbx error php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online



Php dbx error syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.


Function index

Variables

Expressions

Operators

Control-Structures

Cookies

Array

Date & Time

Directory function

File

Image

Operators

Form data handling

Mathematics operators

Mail

Php Mysql

Network Functions

Strings

php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
 
 
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online