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

<table width="355" height="50" border="0" align="left">
  <tr>
    <td><strong>Date</strong></td>
    <td><strong>Subject</strong></td>
  </tr>
  <?php do { ?>
  <tr>
    <td> <a href="details.php?recordID=<?php echo $row_news['id']; ?>"> <?php echo $row_news['date']; ?>&nbsp; </a> </td>
    <td> <?php echo $row_news['subject']; ?>&nbsp; </td>
  </tr>
  <?php } while ($row_news = mysql_fetch_assoc($news)); ?> //line 63
</table>

Recommended Answers

All 3 Replies

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.

i tried what you told me and i get a

Resource id #5

That's your connection ID, not your query.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.