RE: mysql_select_db() and mysql_query()

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

 



> 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... 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux