Clubby2008 Posted December 27, 2008 Share Posted December 27, 2008 I am trying to use PHP mySQL with Dreamweaver. Whenever I try to create a connection I am told Your PHP server doesn't have the MySQL module loaded or you can't use the MySQL_(P) connection functions. I have configured extensions, I have tried this with out Dreamweaver, when you request a DB operation it just ignores all the remaining code. I am following a tutorial in PHP and MySQL Web Development by Luke Welling and Laura Thomson. There must be a trick with the PHP installation I am sure but I cannot find it, getting a bit cheesed off now. Thanks Julian Quote Link to comment https://forums.phpfreaks.com/topic/138593-no-database-connection/ Share on other sites More sharing options...
DarkSuperHero Posted December 27, 2008 Share Posted December 27, 2008 i believe most Servers/Host do not allow external MySQL connections. If that is the case I would suggest runing a PHP/MYSQL installation on your computer, try XAMMP or EasyPHP both are easy install, low maintanance, great for development/testing/learning enviornments. Quote Link to comment https://forums.phpfreaks.com/topic/138593-no-database-connection/#findComment-724657 Share on other sites More sharing options...
Clubby2008 Posted December 27, 2008 Author Share Posted December 27, 2008 I have Appache server running locally with Mysql as suggested in the book I am using, I have followed all the setup notes but there is obviously something wrong still. Quote Link to comment https://forums.phpfreaks.com/topic/138593-no-database-connection/#findComment-724663 Share on other sites More sharing options...
wildteen88 Posted December 27, 2008 Share Posted December 27, 2008 I have Appache server running locally with Mysql as suggested in the book I am using, I have followed all the setup notes but there is obviously something wrong still. You'll also need PHP installed and setup with Apache. Have you done this yet? Also ensure you have saved your PHP code to file which ends in .php (eg filename.php NOT filename.html). Also to run your PHP code go to http://localhost/filename.php. Do not load the file directly into the browser (eg file:///C:\path\to\file.php) otherwise the PHP code will not work. Quote Link to comment https://forums.phpfreaks.com/topic/138593-no-database-connection/#findComment-724674 Share on other sites More sharing options...
Clubby2008 Posted December 27, 2008 Author Share Posted December 27, 2008 Yes I have PHP installed and running and working. The only time it doesn't work is when there is a database operation. I am going to have a go with easy PHP. Quote Link to comment https://forums.phpfreaks.com/topic/138593-no-database-connection/#findComment-724677 Share on other sites More sharing options...
JasonLewis Posted December 27, 2008 Share Posted December 27, 2008 No go with WampServer not EasyPHP. Quote Link to comment https://forums.phpfreaks.com/topic/138593-no-database-connection/#findComment-724681 Share on other sites More sharing options...
wildteen88 Posted December 27, 2008 Share Posted December 27, 2008 No go with WampServer not EasyPHP. Or.. just post your current PHP configuration here. It is most probably something really simple. Quote Link to comment https://forums.phpfreaks.com/topic/138593-no-database-connection/#findComment-724685 Share on other sites More sharing options...
DarkSuperHero Posted January 1, 2009 Share Posted January 1, 2009 whats wrong with Easy PHP ? Why not use it ? Ive used it for longest time! :-) Quote Link to comment https://forums.phpfreaks.com/topic/138593-no-database-connection/#findComment-727661 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.