$cn = @mysql_connect("localhost","root","tu-clave") or die("Error de conexion."); mysql_select_db("tu-base-de-datos");