How can you establish a connection between PHP and MySQL?आप PHP और MySQL के बीच एक कनेक्शन कैसे स्थापित कर सकते हैं?
आप PHP और MySQL के बीच एक कनेक्शन कैसे स्थापित कर सकते हैं?
Show answerHide answer
Correct answer: (D) By using the "mysqli_connect()" function in PHP"mysqli_connect()" फ़ंक्शन का उपयोग करके
Explanation
mysqli_connect(host, user, password, database) opens a connection from PHP to a MySQL server. PDO is the other common method. PHP has no generic connect() function for this.mysqli_connect(host, user, password, database) PHP से MySQL सर्वर का कनेक्शन खोलता है। PDO दूसरा आम तरीका है। PHP में इसके लिए कोई सामान्य connect() फ़ंक्शन नहीं है।