Jump to content

[SOLVED] mysql not quite working HELP!!


Recommended Posts

Hi i'm really new to php and mysql but i think i'm really close to getting it all working nicely, php works fine but the problem is mysql i can access it in the Command Line Client so i know its running but when i run a page with mysql on it i get a blank screen nothing happends also there is no mention of mysql in the phpinfo(); i think i am missing something in the php.ini file but i dont know what?

sorry if this makes no sense but any help would be great.

thanks in advance.

carl.

Link to comment
Share on other sites

In order for php to be able to access the mysql server, php's mysql extension must be enabled. The exact method depends on how php was installed, but in general there must be a line in the php.inii file that php is using like the following -

 

extension=php_mysql.dll

 

Stop and start your web server to get any changes made to php.ini to take effect.

 

If the above does not work, you would need to provide specific information on how you obtained and installed both the web server and php - what exact files you downloaded (.msi, .zip) for each of them.

 

As to your blank page, please set error_reporting to E_ALL and display_errors to ON in your php.ini to get php to help you while learning php, developing php code, and debugging php code (the current blank page is due to a fatal runtime error since the mysql_ functions are not defined.)

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.