Link to home
Start Free TrialLog in
Avatar of 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
Flag of Germany image

Here's sample code for conneting to a MySQL database:

Connections to other databases are dealt with in this thread:
All the connection strings you'll ever want/need

Hope that helps,

Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

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