1$con="";
2$MODE="";
3$dbhost = "localhost";
4$dbuser = "root";
5$dbpassword = "";
6$database = "name";
7
8$con = new PDO ( "mysql:host=$dbhost;dbname=$database", "$dbuser", "$dbpassword", array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
9$con->setAttribute ( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
10