Current location: Hot Scripts Forums » Programming Languages » PHP » not a valid MySQL result resource


not a valid MySQL result resource

Reply
  #1 (permalink)  
Old 12-07-11, 10:07 AM
cyberfolli cyberfolli is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 93
Thanks: 8
Thanked 0 Times in 0 Posts
not a valid MySQL result resource

Hi all I am sure this is a simple over site on my part but this code works on other servers and I just started developing on a new server and it's giving me an error on the mysql_fetch_array line

any help would be greatly appreciated


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


Code:
$sql = "SELECT * FROM specials order by id DESC";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query)) {

echo "<table width=500 cellspacing=1 cellpadding=1 border=0  class=coupontable>";
Reply With Quote
  #2 (permalink)  
Old 12-07-11, 10:16 AM
cyberfolli cyberfolli is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 93
Thanks: 8
Thanked 0 Times in 0 Posts
Sorry Figured it out

NOt sure how to delete thread..
Reply With Quote
Reply

Bookmarks

Tags
mysql_fetch_array


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource Rushy123 PHP 1 04-10-10 05:53 AM
[SOLVED] mysql_fetch_row(): supplied argument is not a valid MySQL result resource ladytrupp PHP 3 12-22-08 08:57 PM
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource Nikker PHP 9 07-12-06 03:05 AM
mysql_fetch_array(): supplied argument is not a valid MySQL result resource... Dion PHP 3 07-16-04 03:48 AM
Supplied argument is not a valid MySQL result resource help aequo PHP 2 06-15-04 08:13 AM


All times are GMT -5. The time now is 08:58 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.