Solved

how to connect php with MsSql server?

Posted on 2003-10-31
7
252 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 9

Expert Comment

by:bhagyesht
ID: 9656458
0
 
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 20 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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Suggested Solutions

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.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

749 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