hi guys.. need your help for retrieving selected images from the database and display it in thumbnails.. thanks
<? mysql_connect("localhost","root", ""); mysql_select_db("dbname"); $query = "SELECT Pics from tblPic"; $result = mysql_query($query); echo ''; while ($r=mysql_fetch_array($result)) { $pic = $r['Picture']; echo ''; } echo ''; ?>
<? mysql_connect("localhost", "root", ""); mysql_select_db("dbname"); $query = "SELECT Picture FROM tblPics"; $result = mysql_query($query); echo ''; while ($r=mysql_fetch_array($result)) { $pic = $r['Picture']; echo ''; } echo ''; ?>