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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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