Hi,
With PostgreSQL I made the following query ;
$Test_ville=pg_exec($connectID, "SELECT id_ville FROM ville WHERE nom_ville='$Nom_ville'");
Since Nom_ville is unique per table, I use the command pg_result to get the id_ville into my variable :
if($Test_ville) $ID_ville=pg_result($Test_ville,0,0);
BUT... it does not work, I have an error message "Cannot jump to row 0..."
If I write the same thing with pg_fetch_row :
if($Test_ville) $temp=pg_fetch_row($Test_ville, 0);
$ID_ville=$temp[0];
IT WORKS !!!
but I do not see why pg_result does not work...
I someone can tell me please ?