"; $query = "SELECT * FROM templates"; $sth = $adb->prepare($query); if($sth) { $res = $sth->execute(); $numRows = $sth->rows(); for($i = 0; $i < $numRows; $i++) { $result = $sth->fetchrow_hash(); $ID = $result["ID"]; $name = $result["templname"]; PRINT " $name
"; } } else { PRINT "Could not prepare query: ".$sth->errstr."
\n"; } ?>