MCQs > IT & Programming > PHP > Correct way to create two independent connections to MySQL in PHP?

PHP MCQs

Which of the following is the correct way to create two independent connections to MySQL in PHP?

Answer

Correct Answer: $dbh1 = mysql_connect($hostname, $username, $password); $dbh2 = mysql_connect($hostname, $username, $password, true);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it