Jump to content


Photo

How do you connect using PHP?


  • Please log in to reply
3 replies to this topic

#1 creativkook

creativkook
  • Members
  • PipPip
  • Member
  • 25 posts

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.

#2 imartin

imartin
  • Members
  • PipPip
  • Member
  • 13 posts

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.

#3 creativkook

creativkook
  • Members
  • PipPip
  • Member
  • 25 posts

Posted 16 September 2006 - 10:57 PM

Thanks!

#4 imartin

imartin
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 21 September 2006 - 02:04 AM

Try out this article, runs through basic MSSQL queries.
http://wampjournals....se/MSSQL-&-PHP/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users