Hello,
I think your code will probably give you an error.
Why are you using mysql_db_query() on the result? If you've queried out the result already with mysql_query(), you don't need to do it again - besides, mysql_db_query() takes an SQL statement as the second parameter - but you set the result, which is not correct.
Here's also something I quote from php.net regarding mysql_db_query():
Quote:
|
Originally Posted by http://ca.php.net/function.mysql-db-query
Note: This function has been deprecated since PHP 4.0.6. Do not use this function. Use mysql_select_db() and mysql_query() instead.
|
Hope this helps. =)