Code:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body> <?php $catelogue_id=$_REQUEST['catelogue_id']; $con=mysql_connect('localhost','root','') or die(mysql_error()); $db=mysql_select_db('catelog',$con)or die(mysql_error()); ?> <?php $q="select * from catelogue where catelogue_id=$catelogue_id"; $res=mysql_query($q,$con); while($row=mysql_fetch_array($res)) { } ?> <a href="cat_view2.php?catelogue_id=<?php echo $row[0]; ?>"><img src="http://bytes.com/topic/mysql/Admin/<?php echo $row[7]; ?>" width=280 height=288 alt=""></a> </body> </html>
Warning: mysql_fetch_arr ay(): supplied argument is not a valid MySQL result resource in c:\wamp\www\st2 \client\cat_vie w2.php on line 19
plese help me
Comment