Re: Attempting to search a MySQL database from PHP not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)) {
.....
}

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux