I keep getting this error. Update I took out the link and I got it on line 17. so I took out the link there too and now it works so, My question is how do I get it to string with a link? Thanks in advance
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/d/o/m/domain/html/addpuppy2.php on line 14
PHP Code:
<?php
$con = mysql_connect("p41mysql91.secureserver.net","tttbd","TtT1234");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}mysql_select_db("tttbd", $con);$sql="INSERT INTO addpup (name, price, description)
VALUES
('$_POST[name]','$_POST[price]','$_POST[description]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
$title = "Your Puppy Has NOT been added";
Line 14--> $pcontent = "<a href="/addpuppy.php">Please click here to try again</a>";
}
$title = "Your Puppy Has been added";
$pcontent = "<a href="/momsadminpage.php">Click here to go back to the admin Page<a>";
mysql_close($con);
?>
<html>
<head>
<title><?php echo $title; ?></title>
</head>
<body>
<?php
echo $title;
echo $pcontent;
?>
</body>
</html>