Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/138593-no-database-connection/
Share on other sites

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.

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.

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.