?php $result = sesam_query ("SELECT * FROM phone\n". "WHERE LASTNAME='".strtoupper($name) ."'\n"." ORDER BY FIRSTNAME", 1); if (!$result) {... error...} / / print the table: print "TABLE BORDER \n"; while (($row = sesam_fetch_array ($result)) count ($row) 0) {print" TR \n"; print "TD ".htmlspecialchars ($row["firstname"])." / TD \n"; print "TD ".htmlspecialchars ($row["lastname"])." / TD \n"; print "TD ".htmlspecialchars ($row["phoneno"])." / TD \n"; print "/ TR \n";} 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) {... error...} / / Affiche la table print "TABLE BORDER \n"; while (($row = sesam_fetch_array ($result)) count($row) 0) {print" TR \n"; print "TD ".htmlspecialchars($row["firstname"])." / TD \n"; print "TD ".htmlspecialchars($row["lastname"])." / TD \n"; print "TD ".htmlspecialchars($row["phoneno"])." / TD \n"; print "/ TR \n";} print" / TABLE \n"; sesam_free_result ($result);?