how do i solve the below error

Reply

Join Date: Jun 2007
Posts: 2
Reputation: dumisibanda is an unknown quantity at this point 
Solved Threads: 0
dumisibanda dumisibanda is offline Offline
Newbie Poster

how do i solve the below error

 
0
  #1
Jun 24th, 2007
Warning: mysql_fetch_assoc(): 3 is not a valid MySQL result resource in C:\Inetpub\wwwroot\BMF\Web\news.php on line 63

Records 1 to 2 of 2

  1. <table width="355" height="50" border="0" align="left">
  2. <tr>
  3. <td><strong>Date</strong></td>
  4. <td><strong>Subject</strong></td>
  5. </tr>
  6. <?php do { ?>
  7. <tr>
  8. <td> <a href="details.php?recordID=<?php echo $row_news['id']; ?>"> <?php echo $row_news['date']; ?>&nbsp; </a> </td>
  9. <td> <?php echo $row_news['subject']; ?>&nbsp; </td>
  10. </tr>
  11. <?php } while ($row_news = mysql_fetch_assoc($news)); ?> //line 63
  12. </table>
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Solved Threads: 35
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: how do i solve the below error

 
0
  #2
Jun 24th, 2007
That most likely means your query failed. You need to verify your query is correct. Echo it out to the screen and run it from the command line or echo out mysql_error() to see what the problem is.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 2
Reputation: dumisibanda is an unknown quantity at this point 
Solved Threads: 0
dumisibanda dumisibanda is offline Offline
Newbie Poster

Re: how do i solve the below error

 
0
  #3
Jun 24th, 2007
i tried what you told me and i get a
  1. Resource id #5
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Solved Threads: 35
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: how do i solve the below error

 
0
  #4
Jun 24th, 2007
That's your connection ID, not your query.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC