How do you connect using PHP?
3 replies to this topic
Posted 15 September 2006 - 09:27 PM
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.
Posted 15 September 2006 - 09:45 PM
$db = mssql_connect("hostname","username","password"); mssql_select_db("databasename"$db)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: http://www.php.net/mssql.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users