May someone help me correct this script? there a few ' and " and ; in the wrong places:
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';
while ($rs=mysql_fetch_array($result)) {
echo '<tr><td>.$rs[0].</td>';
echo '<td>.$rs[1].</td>';
echo '<td><img src="post.php?imgid=.$rs[0]."" width=100 height=100></td></tr>n';
echo '</table>n';
?>

Comment