|
new script
Merry Christmas, (And Happy Holidays) to everyone. I imagine that most of you will not get this post until after the 25th.
I tried to edit the guestbook script that you gave me, but I received this error message:
Parse error: parse error in /usr2/hsphere/home/thirdchu/thirdunitarianchurch.org/survey.php on line 8
I tried to keep the script as simple as possibel. I have the info a the beginning:
<?php
$hostname = "";
$username = "";
$password = "";
$databasename = "";
$link = mysql connect ($hostname, $username, $password);
mysql select db ($ReligionSurvey, $link);
And I set the insert statement up like this:
$stmt = "insert into "my tabel name" (the names of the fileds separated by commas) value (the names of the values preceeded by '$'s)
Question: I noticed that your script had x's after each $fieldname, would that work with a mix of text fields and numeric fields?
Is leaving out the x's my problem?
The rest of the script goes:
mysql bd query ($databasename, $stmt);
unset ($avail);
header ("Location: survey.php");
exit();
?>
Did I leave something out?
|