RE: [PHP-DB] mysql_select_db() and mysql_query()
| From: | John W. Holmes | Date: | Sat, 30 Nov 2002 21:11:14 +0000 |
| Subject: | RE: [PHP-DB] mysql_select_db() and mysql_query() | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23743@lists.php.net to get a copy of this message | ||
> A friendly error message advised me that "mysql_db_query" is
deprecated
> and
> to use "mysql_select_db() and
>
> mysql_query()". but I can't seem to get past this return in the
Browser:
> "Parse error: parse error in c:\program files\apache
>
> group\apache\htdocs\crup_hs_local\result.php on line 58". I think I
don't
> understand the basic syntax.
>
> /*$result = mysql_db_query($dbname,$sql);*/
> /*mysql_db_query is deprecated; use mysql_select_db() and
mysql_query()*/
> $result = mysql_select_db($dbname) or die(mysql_error();
You're missing a closing parenthesis on the above line.
---John Holmes...