PHP-MySQL

J

juan

Guest
Hi all,
I have just joined.

My problem is:
I am trying everything to get php scripts to connect to Mysql
It just doesn't seem to see mysql.
I have mysql 5, php 5.1.4.4
apache 2.0.58

I have the extension ok c:/php/ext

also extension=mysql.dll uncommented

this is what i am using
<?PHP

$connection = @mysql_connect("localhost", "user name with-held for security reasons", "password with-held for security reasons"or die("couldn't connect");
mysql_select_db("mydb"), $connection);


?>

also I have the path correct in system
I would very much appreciate your help

juan
 
I have mysql 5, php 5.1.4.4
apache 2.0.58

Hosted here? Are you on a VPS account? JodoHost's main systems don't support MySQL 5 or PHP 5. Are you talking on your local development server?

If you are talking hosted here at JodoHost, try removing your php.ini file. The default system settings are usually sufficient. I access MySQL from php all the time without issues. If you do need the php.ini for other configurations, submit a ticket to get the proper base version for your particular server. They each use slightly different versions of the php.ini.

Tim
 
Back
Top