I am trying to make a simple mysql_connect('localhost', 'user', 'password') connection and I get😛arse error: parse error in db_connect.php on line 3
I'm told that I need a mysql module for php. I'm running php 4.0.3l1-C1r5.
Thanks
I hope you didn't forget the semicolon at the end of your line or in the line before...
This is the entire script. I've boiled it down to its essence for trouble shooting <? mysql_connect() mysql_connect("localhost", "user", "password"); ?>
<HEAD> <TITLE>PHP Test</TITLE> </HEAD> <BODY> </BODY>
first make sure you have mysql installed 😛 second you need to take out that empty "mysql_connect()" line, which also has no semi colon at the end of it 😛
MySQL is installed, I use it for my (don't cringe) asp connections
I have removed the empty mysql_connect() before but then received this error:
Fatal error: Call to undefined function: mysql_connect() in db_connect.php on line 2
mysql should automatically included as an module. look up your php config file and look for an mysql module entry.