П О Р Т А Л                            
С Е Т Е В Ы Х                          
П Р О Е К Т О В                        
  
Поиск по сайту:
                                                 
Главная

О проекте

Web-мастеру
     HTML & JavaScript
     SSI
     Perl
     PHP
     XML & XSLT
     Unix Shell

MySQL

Безопасность

Хостинг

Другое








Самое читаемое:

Учебник PHP - "Для Чайника".
Просмотров 6443 раз(а).

Иллюстрированный самоучитель по созданию сайтов.
Просмотров 8558 раз(а).

Учебник HTML.
Просмотров 5171 раз(а).

Руководство по PHP5.
Просмотров 2329 раз(а).

Хостинг через призму DNS.
Просмотров 7531 раз(а).

Подборка текстов стандартных документов.
Просмотров 149 раз(а).

Учебник PHP - Самоучитель
Просмотров 5443 раз(а).

Документация на MySQL (учебник & справочное руководство)
Просмотров 11655 раз(а).

Внешние атаки...
Просмотров 7903 раз(а).

Учебник PHP.
Просмотров 4566 раз(а).

SSI в примерах.
Просмотров 1402 раз(а).



 
 
| Добавить в избранное | Сделать стартовой | Помощь





Руководство по PHP
Пред. След.

pg_field_is_null

(PHP 4 >= 4.2.0, PHP 5)

pg_field_is_null -- Test if a field is SQL NULL

Описание

int pg_field_is_null ( resource result, int row, mixed field )

int pg_field_is_null ( resource result, mixed field )

pg_field_is_null() tests if a field in a PostgreSQL result resource is SQL NULL or not.

Замечание: This function used to be called pg_fieldisnull().

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

result

PostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (among others).

row

Row number in result to fetch. Rows are numbered from 0 upwards. If omitted, current row is fetched.

field

Field number (starting from 0) as an integer or the field name as a string.

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

Returns 1 if the field in the given row is SQL NULL, 0 if not. FALSE is returned if the row is out of range, or upon any other error.

Примеры

Пример 1. pg_field_is_null() example

<?php
  $dbconn
= pg_connect("dbname=publisher") or die ("Could not connect");
  
$res = pg_query($dbconn, "select * from authors where author = 'Orwell'");
  if (
$res) {
      if (
pg_field_is_null($res, 0, "year") == 1) {
          echo
"The value of the field year is null.\n";
      }
      if (
pg_field_is_null($res, 0, "year") == 0) {
          echo
"The value of the field year is not null.\n";
    }
}
?>



Если Вы не нашли что искали, то рекомендую воспользоваться поиском по сайту:
 





Copyright © 2005-2016 Project.Net.Ru