/* assume the first column of 'sometable' is a serial * / $qid = ifx_query("insert into sometable values (0, '2nd column', 'another column') ", $connid); if (! $qid) {... error...} $sqlca = ifx_getsqlca ($qid); $serial_value = $sqlca["sqlerrd1"]; echo "The serial value of the inserted row is:". $serial_value br \n";
?php / * On suppose que la première colonne d'une table 'quelconque 'est un numéro de série * / $qid = ifx_query("insert into sometable values(0, '2nd column', 'another column' ", $connid); if (! $qid) {/ /... erreur...} $sqlca = ifx_getsqlca ($qid); $serial_value = $sqlca["sqlerrd1"]; echo "Le numéro de série de la valeur insérée est:". $serial_value. "br \n";?