Skip to main content
Participant
July 30, 2006
Question

mysql_fetch_assoc()

  • July 30, 2006
  • 1 reply
  • 261 views
I created a db and added content to it. Now I want to get it out. I created a recordset for a simple search for houses buy state.
It works fine in the test, but when I add the dynamic table I get this on the page

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\wamp\www\offers4house\results.php on line 12

I have followed every help page and still cant figure it out. Line 12 is the next to last line of this code for the dynamic table

<table border="1" cellpadding="1" cellspacing="1">
<tr>
<td>state</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['state']; ?></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>

I can include the rest of the dreamweaver php for the recordset and query if needed.
Please Please Please! Help
Michael
This topic has been closed for replies.

1 reply

Participating Frequently
July 31, 2006
Hey,

1. What version of PHP are you using to test your pages?

2. How are you defining your recordsets? Are you using the simple or advanced mode of the recordset dialog box?
If you are manually specifying the runtime value of the search filter/s that you are using, make sure that they are correct.