?
Solved

how to connect php with MsSql server?

Posted on 2003-10-31
7
Medium Priority
?
259 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
5 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Starting up a Project
Screencast - Getting to Know the Pipeline

840 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