Back again. Still having problems. Here's the code (below).
i am getting a parse error on line 40. I think that is the $result = mysql_query ($sql, $db); line. Not sure what is going on. Also, what is the deal with my header and footer files (i.e. why will they not run?) Any suggestions of what I should check to remedy this? THanks for the help again.
ZAc
Code for infoform.php
<head><link rel="stylesheet" href="format.css">
<title>Information Response</title>
</head>
<body background="yellow_paper.gif">
<p>
<p>
<a name=0></a>
<p>
<?php
include ("header.php");
?>
<p>
<?php
//set up connection id
$db = mysql_connect (twain.phpwebhosting.com, zacchristie, five.ten);
mysql_select_db (zacchristie);
//assign the query to the variable $sql
$sql = "INSERT INTO employers (title, first_name, last_name, email, company, telephone)
VALUES ('$title', '$first_name', '$last_name', '$email', '$company', '$telephone')"
//execute the query $sql
$result = mysql_query ($sql, $db);
mysql_close(quit);
printf ('Thank you %s %s. I look forward to speaking with you.', $title, $last_name);
mail("zacchristie@hotmail.com","RE: Resume Page Visitor",
"Visitor to my resume page at zacchristie.phpwebhosting.com.":
"$title $last_name, $first_name visited the site for information. n",
The email address is $email. n
$title $last_name works for $company , Tel: $telephone. n");
mysql_close(quit);
?>
<p>
Click here to proceed.
<form action=cv.html method=GET>
<input type=submit value=Thank you>
</form>
<p>
<p>
<p>
<?php
include ("footer.php");
?>
</body>