Re: mysql_connect error
| From: | John W. Holmes | Date: | Mon, 25 Aug 2003 02:11:37 +0000 |
| Subject: | Re: mysql_connect error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160627@lists.php.net to get a copy of this message | ||
Mjec wrote:
Hi, again this line is causing problems: $h = mysql_connect('localhost',constant("mysql_user"),constant("mysql_password")) ; Aparantly a parse error. Idaes?Is there a reason you're using constant()?? Try: $h = mysql_connect('localhost', mysql_user, mysql_password); One thing to note about parse errors. If PHP says you have a parse error on line 8 (for example), that means there is an error somewhere before OR on line 8. The line PHP gives is just the point where it realized something was wrong, but the cause could be on a previous line. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com