recent searches:
searching include ,
searching variable ,
searching post...
(PHP 5)
mysqli_fetch_field_direct(no version information, might be only in CVS)
result->fetch_field_direct -- Fetch meta-data for a single fieldProcedural style:
mixed mysqli_fetch_field_direct ( mysqli_result result, int fieldnr )Object oriented style (method):
class mysqli_result {mysqli_fetch_field_direct() returns an object which contains field definition informations from specified resultset. The value of fieldnr must be in the range from 0 to number of fields - 1.
Returns an object which contains field definition information or FALSE if no field information for specified fieldnr is available.
Tabela 1. Object attributes
| Attribute | Description |
|---|---|
| name | The name of the column |
| orgname | Original column name if an alias was specified |
| table | The name of the table this field belongs to (if not calculated) |
| orgtable | Original table name if an alias was specified |
| def | The default value for this field, represented as a string |
| max_length | The maximum width of the field for the result set. |
| flags | An integer representing the bit-flags for the field. |
| type | The data type used for this field |
| decimals | The number of decimals used (for integer fields) |
Przykład 2. Procedural style
|
Powyższy przykład wyświetli:
Name: SurfaceArea Table: Country max. Len: 10 Flags: 32769 Type: 4 |
| Poprzedni | Spis treści | Następny |
| mysqli_fetch_assoc | Początek rozdziału | mysqli_fetch_field |
Język PHP to dzisiaj powszechnie przyjęty standard, podstawa tworzenia dynamicznych stron WWW, opartych na bazach danych.
PHP to język skryptowy. Znaczy to, że jest to język nie kompilowalny. Program jest wykonywany przez interpreter na podstawie jego kodu źródłowego. Język PHP to element technologii internetowej SERVER-SIDE. Znaczy to, że kod języka jest wykonywany od strony serwera (na serwerze).
W jakim celu używac PHP? Po co to komu?
Załóżmy, że potrzebujemy takiej strony internetowej, która wyświetli zawsze bieżącą datę. Dzięki technologii PHP, datę i godzinę odczytywać można z miejsca gdzie wykonuje się skrypt, np. gdy serwer znajduje się w USA a my w Polsce to widoczna jest różnica w czasie który zostanie wyświetlony.
decoupage wakacje Włochy wykładziny obiektowe nosidełko ergonomiczneagroturystyka kaszuby, końcówki kolekcji, wiza do rosji, agroturystyka kaszuby, usuwanie zmarszczek, wiza do rosji, wspólnota mieszkaniowa wzory, Renault Laguna książa naprawy, Suszarka Optimum, Kredyty konsolidacyjny, pomiar rozkładu temperatur, darmowe szablony www, doradztwo inwestycyjne Kraków