I don't know is this off-topic for this site but i have site that run on php and mysql. And i want to change my mysql connection to PDO.
This is my connection file that i include in every file at the begining:
session_start();
$connection = @mysql_connect("localhost", "user", "password");
$database = @mysql_select_db("pemax", $connection) or die (mysql_error());
and i added this line for PDO connection
$dbc = new PDO ("mysql:host=localhost;dbname=pemax", "user", "password");
after adding this code I could not run any of my php from browser, so I had delete code I had added but still nothing just white blank page, and I don't receive any errors.
What could problem be???