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


ingres_cursor

ingres_error

Ingres II Функции

PHP Manual


ingres_errno

(PECL ingres:1.1-1.4.3)

ingres_errno — Gets the last ingres error number generated

Описание

int ingres_errno ([ resource $link ] )

Returns an integer containing the last error number. If no error was reported 0 is returned.

If a link resource is passed to ingres_errno() it returns the last error recorded for the link. If no link is passed then ingres_errno() returns the last error reported using the default link.

The function, ingres_errno(), should always be called after executing a database query. Calling another function before ingres_errno() is called, will reset or change any error code from the last Ingres function call.

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

link

The connection link identifier. If not specified, the last opened link is used.

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

Returns an integer containing the last error number. If no error was reported 0 is returned.

Примеры

Пример #1 ingres_errno() example

<?php
$link 
ingres_connect($database$user$password);

ingres_query("select * from table"$link);

$error_code ingres_errno($link);

if ( 
$error_code != ) {
   echo 
"An error occured - " $error_code;
}
?>

Смотрите также


ingres_cursor

ingres_error

Ingres II Функции

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

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