Jump to content

Very beginner help please


rorybing

Recommended Posts

Hi,

 

I'm trying to set up a mysql database on my laptop, XP, and connect to a test database using php.

 

I've created the database called 'testdb' with user account 'test' and password 'password. The code I'm using to try and connect to the test datase is the following;

$dbconnect=mssql_connect("localhost", "test", "password");

But when I open the page in a web browser, I am getting the following error;

Fatal error: Call to undefined function mssql_connect() in <file_location>

 

I'm hoping I'm doing something simple here, but, I've looked up forums and this seems to be the code to use to connect.

 

Anyone who could help would be greatly appreciated.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/216003-very-beginner-help-please/
Share on other sites

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.