0

How to connect mysql with php?

hi how to connect mysql with php and fetch data from database...

11th Jun 2017, 4:33 AM
Xulqarnain
Xulqarnain - avatar
1 ответ
+ 1
Search for LAMP setup, or if you are in windows XAMP. If you already have this, you could easily establish a connection with your database passing your db name location user and password as arguments for the constructor of the mysqli object: $mysqli = new mysqli(DB_HOST, DB_USERNAME, DB_PASSWORD, DB_NAME);
11th Jun 2017, 2:30 PM
Agustin Marinsalda Pastor
Agustin Marinsalda Pastor - avatar