|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-14 23:45 UTC] jah at cvs dot php dot net
[2000-08-08 23:01 UTC] waldschrott@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Jun 28 16:00:01 2026 UTC |
If i send a query at postgresql for retrive field codice_luogo the php respond with wrong result. The same query in pgsql work fine. amministrazione=> \d personale Table = personale +----------------------------------+----------------------------------+-------+ | Field | Type | Length| +----------------------------------+----------------------------------+-------+ | cognome | char() not null | 25 | | nome | char() not null | 25 | | titolo | char() | 6 | | sesso | char() not null | 7 | | data_nascita | date not null | 4 | | codice_fiscale | char() not null | 16 | | e_mail | char() | 40 | | recapito_tel_1 | char() not null | 20 | | recapito_tel_2 | char() | 20 | | asl_appartenenza | char() | 10 | | tipo_assunzione | char() not null | 1 | | tipo_ruolo | char() not null | 2 | | data_nomina_ruolo | date not null | 4 | | data_cessazione_ruolo | date | 4 | | motivo_cessazione_ruolo | char() | 15 | | numero_delibera_ruolo | char() not null | 20 | | tipo_assunzione_ruolo | char() not null | 2 | | codice_paga | int4 not null | 4 | | tipo_paga | char() not null | 1 | | quota_contanti_lire | numeric | 30.6 | | quota_contanti_euro | numeric | 30.6 | | quota_accredito_lire | numeric | 30.6 | | quota_accredito_euro | numeric | 30.6 | | codice_luogo | int4 | 4 | | indirizzo_domicilio | char() not null | 30 | | indirizzo_residenza | char() not null | 30 | | indirizzo_sede | char() not null | 30 | +----------------------------------+----------------------------------+-------+ Index: personale_pkey amministrazione=> $quasar12=db_query("SELECT codice_luogo from personale where codice_fiscale='$codice_fiscale'"); the codice_luogo has value 102 php query return 14, psql query return 102. thanks for help. bye