Link to home
Start Free TrialLog in
Avatar of MDH7575
MDH7575

asked on

How do I open a database connection within my HTML Website?

I have created a web site using HTML and want to retrieve data from a sql db on a local server.

I have been unable to get the right syntax.

An example script would be greatly appreciated!
Avatar of torimar
torimar
Flag of Germany image

Here's sample code for conneting to a MySQL database:
http://php.codenewbie.com/articles/php/1511/Connect_to_MySQL-Page_1.html

Connections to other databases are dealt with in this thread:
http://www.codingforums.com/archive/index.php/t-40139.html
All the connection strings you'll ever want/need

http://www.connectionstrings.com/

Hope that helps,

Pancho
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial