?php $result = sesam_query ("SELECT * FROM phone\n". "WHERE LASTNAME='".strtoupper($name) ."'\n"." ORDER BY FIRSTNAME", 1); if (!$result) {... error...} / / print the table in backward order print "TABLE BORDER \n"; $row = sesam_fetch_row ($result, SESAM_SEEK_LAST); while (is_array ($row)) {print" TR \n"; for ($col = 0; $col $row["count"]; ++$col) {print "TD ".htmlspecialchars ($row[$col])." / TD \n";} print "/ TR \n"; / / use implied SESAM_SEEK_PRIOR $row = sesam_fetch_row ($result);} print" / TABLE \n"; sesam_free_result ($result);?
?php $result = sesam_query ("SELECT * FROM phone\n". "WHERE LASTNAME='".strtoupper($name) ."'\n"." ORDER BY FIRSTNAME", 1); if (! $result) {... erreur...} / / Affiche la table dans l'ordre inverse print "TABLE BORDER \n"; $row = sesam_fetch_row ($result, SESAM_SEEK_LAST); while (is_array($row)) {print" TR \n"; for($col = 0; $col $row["count"]; ++$col) {print "TD ".htmlspecialchars($row[$col])." / TD \n";} print "/ TR \n"; / / utilise la valeur implicite de SESAM_SEEK_PRIOR $row = sesam_fetch_row ($result);} print" / TABLE \n"; sesam_free_result ($result);?