chochadoobie Posted July 2, 2009 Share Posted July 2, 2009 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. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted July 2, 2009 Share Posted July 2, 2009 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.) Quote Link to comment Share on other sites More sharing options...
chochadoobie Posted July 2, 2009 Author Share Posted July 2, 2009 Thanks for the advice i'll try it out and let you know if it works Quote Link to comment Share on other sites More sharing options...
chochadoobie Posted July 3, 2009 Author Share Posted July 3, 2009 Well i scrapped it and installed WampServer and all is fine now thanks for your help anyway btw if anyones interested i'm running WampServer on windows7 with no problems(fingers crossed) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.