i added on attached file. error doesnt seem to appear. but when i add to the to another page ie: where RS is not empty then shows another error.
<br />
<b>Warning</b>: mysql_fetch_assoc(): 12 is not a valid MySQL result resource in <b>/home/content/39/10368039/html/shrishtiartgallery/drawing-artworks.php</b> on line <b>345</b><br />
<br />
<b>Warning</b>: mysql_fetch_assoc(): 12 is not a valid MySQL result resource in <b>/home/content/39/10368039/html/shrishtiartgallery/drawing-artworks.php</b> on line <b>345</b><br />