par
xclam » 30 avr. 2007, 12:26
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
Ce code la marche
[code] $stmt = 'SELECT * FROM PRODUIT';
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
echo '>'.$row->LIBELLE ;[/code]
Ce code la ne marche pas :?
[code] $stmt = 'SELECT * FROM REQUETE';
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
echo '>'.$row->LIBELLE ;[/code]
Les tables contiennent toutes les deux la colonne LIBELLE.
Le deuxime code me donne l'erreur :
[code]Dynamic SQL Error SQL error code = -804 Incorrect values within SQLDA structure[/code]