2015 Youth Sailing Fundraiser Dinner and Silent Auction

Friday, April 24, 2015

Registrations Received

get_results($query);

if($result)
{
// while ($row = Mysql_fetch_array($result))
// while ($row = mysqli_fetch_array($result))
foreach($result as $key => $row)
{
$field_number = $row->field_number;
switch($field_number)
{
case 2.3:
$fname = $row->value;
break;
case 2.6:
$lname = $row->value;
break;
case 4.3:
$tritip = $row->value;
if ($tritip == 0) {$tritip = “”;
}
break;
case 9:
$pymt = $row->value;
break;
case 19:
$attending = $row->value;
if ($tritip == $attending) {
$veg = “”;
echo “

“;
$tritip = “”;
$veg = “”;
$attending = “”;
}
break;
case 20.3:
$veg = $row->value;
if ($veg == “0”) {
$veg = “”;
break;
}
echo “

“;
$tritip = “”;
$veg = “”;
$attending = “”;
break;
default:
break;
}
}
}
?>

Name Number Attending Tri-Tip Steak Dinners Vegitarian Dinners Payment Type
” . $lname . “, ” . $fname . “ ” . $attending . “ ” . $tritip . “ ” . $veg . “ ” . $pymt . “
” . $lname . “, ” . $fname . “ ” . $attending . “ ” . $tritip . “ ” . $veg . “ ” . $pymt . “