mysql_connect('localhost','user','password');
mysql_select_db('database');
?>
<?php
$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..
$host = "localhost";
$user = "user";
$password = "password";
$database_name = "database";
$pdo = new PDO("mysql:host=$host;dbname=$database_name", $user, $password);