Krok po koroku, pełna dokumentacja w języku polskim. Skrypty napisane w PHP są z reguły umieszczane w dokumentach tekstowych (często razem z HTML lub XHTML). Dzięki temu PHP jest podobny w założeniach do dużo starszego mechanizmu Server Side Includes[4]. PHP pozwala także na wykonywanie skryptów z linii poleceń podobnie jak Perl i Python. Jego modułowa budowa udostępnia również możliwość programowania aplikacji z interfejsem graficznym. PHP umożliwia współpracę z wieloma rodzajami źródeł danych, jak na przykład serwery relacyjnych baz danych, pliki tekstowe czy dokumenty XML.
pg_fetch_assoc() returns an associative array that corresponds to the fetched row (records).
pg_fetch_assoc() is equivalent to calling pg_fetch_array() with PGSQL_ASSOC as the optional third parameter. It only returns an associative array. If you need the numeric indices, use pg_fetch_row().
Notatka: Ta funkcja ustala wartość pól NULL na NULL.
pg_fetch_assoc() is NOT significantly slower than using pg_fetch_row(), and is significantly easier to use.
Notatka:
rowbecame optional in PHP 4.1.0.
resultPostgreSQL query result resource, returned by pg_query(), pg_query_params() or pg_execute() (among others).
rowRow number in result to fetch. Rows are numbered from 0 upwards. If omitted, next row is fetched.
An array indexed associatively (by field name). Each value in the array is represented as a string. Database NULL values are returned as NULL.
FALSE is returned if row exceeds the number
of rows in the set, there are no more rows, or on any other error.
| Poprzedni | Spis treści | Następny |
| pg_fetch_array | Początek rozdziału | pg_fetch_object |
php
kontakt:praca.pozycjonowanie@gmail.com