Re: [PHP] Attempting to search a MySQL database from PHP not working
- From: buddhamagnet@xxxxxxxxx ("Dave Goodchild")
- Date: Thu, 31 May 2007 20:30:35 +0100
Your problem is this:
$result_row[] = mysql_query($query) or die(mysql_error());
....you are assigning a query to a variable. What you need to do is
something like this:
$result = mysql_query($query) or die(mysql_error());
while ($result_row = mysql_fetch_array($result)) {
......
}
- References:
- Attempting to search a MySQL database from PHP not working
- From: Jason Pruim
- Attempting to search a MySQL database from PHP not working
- Prev by Date: Re: [PHP] Attempting to search a MySQL database from PHP not working
- Next by Date: Re: [PHP] How do YOU initialize the form variables?
- Previous by thread: Re: [PHP] Attempting to search a MySQL database from PHP not working
- Index(es):