<?php $host="localhost"; $user="root"; $pass="123"; $dbname="attack"; $con=mysql_connect($host,$user,$pass); if (!$con){ die ("Error"); } mysql_select_db($dbname,$con); ?>