So I’m getting:
Parse error: parse error in eddIn.php on line **33
**which is cool because link 33 is just the closing of the html tag.
here is my code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>edit index page</title>
</head>
<body>
<?php
mysql_connect("stupid me","stupid me","stupid me");
mysql_select_db("stupid me");
$arr = mysql_query("SELECT * FROM index WHERE ID=1") or die("error querying database");
if($_POST['hit'])
{
$pageTitle = $_GET['pageTitle'];
$title = $_POST['title'];
$blurb = $_POST['blurb'];
mysql_query("UPDATE index SET pageTitle='$pageTitle', title='$title', blurb='$blurb' WHERE ID=1") or die("error querying databse");
print "<p>Index successfully edited.</p>";
echo '<a href="edit.php">Return</a>';
} else {
$arr2 = mysql_query("SELECT * FROM index WHERE ID=1") or die("error querying database");
$result_ar2 = mysql_fetch_array($arr2);
?>
<form method="post" action="eddIn.php">
<input type="hidden" name="hit" value="1">
<b>Page Title:</b> <input type='TEXT' name='pageTitle' value='<?php echo $result_ar2['pageTitle']; ?>' size=60><br />
<b>Title:</b> <INPUT TYPE='TEXT' NAME='title' value='<?php echo $result_ar2['title']; ?>' size=60><br />
<b>Blurb:</b> <INPUT TYPE='TEXT' NAME='blurb' value='<?php echo $result_ar2['blurb']; ?>' size=60><br />
<input type="submit" value="Edit Index Page">
</form>
</body>
</html>
I can’t really figure out what to do
If anyone has any ideas, feel free to let me know