[PHP-DB] I think the code looks fine... my server doesnt agree

2001-07-08 Thread Tim
I think that the following code looks fine, but I get an error (Warning: Supplied argument is not a valid MySQL result resource) where it says "while ($Row = mysql_fetch_array ($Result)) {" any ideas? $category returned the following results:"; } else { if ($title) { $Query = "SELECT * from $

Fwd: Re: [PHP-DB] I think the code looks fine... my server doesnt agree

2001-07-08 Thread Nick O'Reilly
the problem is that your query is not returning a result i would start by changing "$Link = mysql_connect ($Host, $User, $Password);" AND "$Result = mysql_db_query ($DBName, $Query, $Link);" To "$Link = mysql_connect ($Host, $User, $Password) OR die("could not connect"