Solved

how to connect php with MsSql server?

Posted on 2003-10-31
7
248 Views
Last Modified: 2011-10-03
I need a databse connection code in which php as front end and MsSql server as backend.please help me with code sample
0
Comment
Question by:rahaman
  • 2
  • 2
7 Comments
 
LVL 9

Expert Comment

by:bhagyesht
Comment Utility
0
 
LVL 5

Expert Comment

by:fantasy1001
Comment Utility
This site will teach you all you require:
http://www.w3schools.com/php/php_db_odbc.asp

Post out if you have any question.

Thanks
~ fantasy ~
0
 

Accepted Solution

by:
mem_fam earned 20 total points
Comment Utility
Something like this:
$db = mysql_connect("localhost", "Username", "Password") or die("Could not connect");
mysql_select_db("Database name",$db);

mem.f
0
 

Expert Comment

by:mem_fam
Comment Utility
Rahaman,

Did you succeed?

mem.f
0
 
LVL 9

Expert Comment

by:bhagyesht
Comment Utility
should have. the cleanup guys will accept this in case he doesnt ;-)
Bhagyesh Trivedi
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now