Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 8460131814
    New Member
    • Oct 2014
    • 1

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

    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>
    in thie page in error found


    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
    Last edited by Rabbit; Oct 10 '14, 04:51 AM. Reason: Please use code tags when posting code or formatted data.
  • godfrem
    New Member
    • Oct 2014
    • 1

    #2
    What is that you want to do??

    Comment

    Working...