This is an old revision of the document!
<?php $host = "localhost"; $username = "coding_user"; $password = "cheese"; $db_name = "coding"; $mysql_string = "mysql:host=$host;dbname=$db_name"; $db_connection = new PDO($mysql_string, $username, $password); ?>