Jump to content

Archived

This topic is now archived and is closed to further replies.

creativkook

How do you connect using PHP?

Recommended Posts

Ok, this is my first time using a Microsoft SQL database instead of MySQL.  Can someone point me in the direction of some good tutorials on how to connect to the database and all that jazz?  I need to be able to have a login page, and then do simple updates to the database from a web page.

Share this post


Link to post
Share on other sites
[code]
$db = mssql_connect("hostname","username","password");
mssql_select_db("databasename"$db)
[/code]
Same as connecting to MySql just has its own functions.
Then as far as running queries, if you are familiar with MySql queries using php it shouldnt be too hard for you to figure it out for mssql, most of the php is the same just not as extensiveas you can see: [url=http://www.php.net/mssql]http://www.php.net/mssql[/url].

Share this post


Link to post
Share on other sites
Try out this article, runs through basic MSSQL queries.
[url=http://wampjournals.com/article/Database/MSSQL-&-PHP/]http://wampjournals.com/article/Database/MSSQL-&-PHP/[/url]

Share this post


Link to post
Share on other sites

×

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.