Hi all,
The following is a section of my script:
@ $db = mysql_connect('localhost', '', '');
if (!$db)
{
echo "Error: Could not connect to database. Please try again later.";
exit;
}
mysql_select_db("typhoon");
$query = "insert into reply(post_id, reply_name, reply_email, reply_topic_name, reply_post, reply_time_stamp, autorespond)
values('$post_id','$reply_name','$reply_email','$reply_topic_name','$reply_post','$reply_time_stamp','$autorespond')";
$result = mysql_query($query);
if($result)
echo "<font face=Verdana, Arial size=2>Your band information was successfully inserted into the database.</font><br>";
}
echo "<br><a href=\"typh_forum.php\">Back to main page</a>";
?>
This part of the script inserts values from a form into the reply table. The form, amongst other things has a checkbox where the user checks if they would like an email sent to them when a new reply to the post is added.
What i would like to know is how do i modify this part of the script inorder to do this?
Cheers,
maccam