I'm trying to multiply $total before I write to the database...$total is always the number of tickets times 25 ($25 per ticket) plus any donations this is what I have:
<?php
if ($submit) {
{$total = $tix*25+$donation}
{
$sql = "INSERT INTO vday (name,address,city,state,zip,email,vp,day,tix,donation,total,ccname,ccnum,ccmonth,ccyear,cctype,notes,entered) VALUES ('$name','$address','$city','$state','$zip','$email','$vp','$day','$tix','$donation','$total','$ccname','$ccnum','$ccmonth','$ccyear','$cctype','$notes', '0')";
$result = mysql_query($sql);
}
?>
but I'm getting an error at the line '{$total = $tix*25+$donation}' - I checked my syntax and it looks right. :bemused: