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