Документация PHP


dbx_connect

dbx_escape_string

dbx Функции

PHP Manual


dbx_error

(PHP 4 >= 4.0.6, PHP 5 <= 5.0.5, PECL dbx:1.1.0)

dbx_error — Report the error message of the latest function call in the module

Описание

string dbx_error ( object $link_identifier )

dbx_error() returns the last error message.

Список параметров

link_identifier

The DBX link object returned by dbx_connect()

Возвращаемые значения

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.

Примеры

Пример #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);
?>

Примечания

Замечание: 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.


dbx_connect

dbx_escape_string

dbx Функции

PHP Manual

SAPE все усложнил?

MainLink - простая и прибыльная продажа ссылок!

Последние поступления:

Размещена 10 августа 2020 года

Я по ТВ видел, что через 10 лет мы будем жить лучше, чем в Германии...
Я не понял, что это они с Германией сделать хотят?!

читать далее…

ТехЗадание на Землю

Размещена 14 марта 2018 года

Пpоект Genesis (из коpпоpативной пеpеписки)

читать далее…

Шпаргалка по работе с Vim

Размещена 05 декабря 2017 года

Vim довольно мощный редактор, но работа с ним не всегда наглядна.
Например если нужно отредактировать какой-то файл например при помощи crontab, без знания специфики работы с viv никак.

читать далее…

Ошибка: Error: Cannot find a valid baseurl for repo

Размещена 13 сентабря 2017 года

Если возникает ошибка на centos 5 вида
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/

читать далее…

Linux Optimization

Размещена 30 июля 2012 года

Prelink

читать далее…