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
https://forums.phpfreaks.com/topic/164485-solved-mysql-not-quite-working-help/
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.)

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.