?
Solved

how to connect php with MsSql server?

Posted on 2003-10-31
7
Medium Priority
?
254 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
7 Comments
 
LVL 5

Expert Comment

by:fantasy1001
ID: 9656500
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 80 total points
ID: 9656834
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
ID: 10269337
Rahaman,

Did you succeed?

mem.f
0
 
LVL 9

Expert Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about problems I had with the new location API and permissions in Marshmallow
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
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 …
Simple Linear Regression
Suggested Courses
Course of the Month8 days, 4 hours left to enroll

765 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