I have question about PHP connection.
If you usually using MySQL connection, it'll easy to use. but my question is like this, what happen if i mix PDO connection with usual connection.
it was like :
Code
mysql_connect('localhost','user','password');Code
mysql_select_db('database');Code
?>Code
<?phpPowerShell
$host = "localhost";
$user = "user";
$password = "password";
$database_name = "database";
$pdo = new PDO("mysql:host=$host;dbname=$database_name", $user, $password);
?>
in one file named connect.php
will it crash each other??
thank for your answer..2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Guest UserRank #816 · 2.8K reputationPosted Jan 17, 2016, 10:02 PM EST
Dwi Hyuga94 reputationPosted Jan 18, 2016, 8:42 PM EST