How can we connect to a MySQL database from a PHP script?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajkiran SwainRank #165 · 14.4K reputationPosted Jul 21, 2017, 9:14 AM EDT
To be able to connect to a MySQL database, we must use mysql_connect() function as follows:
Manikandan MurugesanRank #300 · 8.4K reputationPosted Jul 20, 2017, 11:45 PM EDT
Aarti Chauhan5 reputationPosted Aug 24, 2017, 3:24 AM EDT