Page 1 sur 1

[interbase] probleme de select

Posté : 30 avr. 2007, 12:26
par xclam
Ce code la marche

Code : Tout sélectionner

$stmt = 'SELECT * FROM PRODUIT'; $sth = ibase_query($dbh, $stmt); while ($row = ibase_fetch_object($sth)) { echo '>'.$row->LIBELLE ;
Ce code la ne marche pas :?

Code : Tout sélectionner

$stmt = 'SELECT * FROM REQUETE'; $sth = ibase_query($dbh, $stmt); while ($row = ibase_fetch_object($sth)) { echo '>'.$row->LIBELLE ;
Les tables contiennent toutes les deux la colonne LIBELLE.
Le deuxime code me donne l'erreur :

Code : Tout sélectionner

Dynamic SQL Error SQL error code = -804 Incorrect values within SQLDA structure