Jump to content

[SOLVED] PHP - MySQL Connect problem


cdikland

Recommended Posts

After about a 3 years 'vacation' I just installed Apache 2.2.4 along with Php v5.2.4 and MySQL v5.0.n on my PC running XP. Here is (one of) my problem(s)

It would appear I missed somethings in the install or configuration of PHP as I can not connect to my database. In fact I dont get an error message at all just a generic "Website cannot display this page" error. I went as far as to strip the php file down to 1 line of php code only and the resulting file (without the HTML) looks like this

 

'

'

'

<?php

 

$db = mysql_connect("localhost", "cdikland", "meridian") OR DIE("Connect Error : ".mysql_error());

?>

'

'

'

 

 

The result? The error message I indicated above.. I checked my PHP.ini file which contains

 

[php_MSSQL]

extension=php_mssql.dll

[php_MYSQL]

extension=php_mysql.dll

 

The Mysql database exists and I can access it either with admin tools or php version 4.2.n running on another server

 

What could I be missing???

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/71664-solved-php-mysql-connect-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.