Code:
<?php include "./comm.inc"; connectdb(); $sql = "SELECT imgid,imgtype FROM tblimage ORDER BY imgid"; $result = @mysql_query($sql) or die(mysql_error()); echo '<table border=1>n'; echo '<tr><th>imgid</th><th>imgtype</th><th>imgdata</th></tr>n';