Code:
<html>
<head>
<title>hello world </title>
</head>
<body>
<h1>
<? pho
$con=mysql_connect("localhost:3306","root","xyz123"); //line8
if(!$con)
{
echo "failed"<br>;
echo"false no:".mysqp_errno()."<br>";
echo"false information:".mysqp_error()."<br>";
die();
}
echo "success!<br>";
?>
</h1>
</body>
</html>
This is my code..unexpecte d T_VARIABLE in C:\wamp\www\hel lo.php on line 8
Comment