By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,996 Members | 896 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,996 IT Pros & Developers. It's quick & easy.

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

P: 1
Expand|Select|Wrap|Line Numbers
  1. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body> <?php
  2.     $catelogue_id=$_REQUEST['catelogue_id'];
  3.  
  4.     $con=mysql_connect('localhost','root','') or die(mysql_error());
  5.     $db=mysql_select_db('catelog',$con)or die(mysql_error());
  6. ?> <?php
  7. $q="select * from catelogue where catelogue_id=$catelogue_id";
  8.  
  9. $res=mysql_query($q,$con);
  10. while($row=mysql_fetch_array($res))
  11. {
  12.  
  13. }
  14. ?> <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>                
  15.  
in thie page in error found


Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\wamp\www\st2\client\cat_view2.php on line 19



plese help me
Oct 10 '14 #1
Share this Question
Share on Google+
1 Reply


P: 1
What is that you want to do??
Oct 10 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Browse more MySQL Database Questions on Bytes