How to connect mysql with php? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 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