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 :
mysql_connect('localhost','user','password'); mysql_select_db('database');?>
$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.phpwill it crash each other??thank for your answer..
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Guest UserPosted Jan 18, 2016, 3:02 AM
Dwi HyugaPosted Jan 19, 2016, 1:42 AM