Connect PHP to MySQL Database

asked Mar 31, 2012 in Database by roller1 (500 points)
Hello every1..

how do i initially connect MySQL database to PHP?

Thank you

1 Answer

0 like 0 dislike
answered Mar 31, 2012 by moon_tag (1,380 points)
hi roller

to Create a Connection from PHP to a MySQL Database use mysql_connect() function
the syntax is

for further details you can check