Friday Steak Night Dinner

June 9, 2017

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:
$dinners = $row->value;
break;
case 9:
$pymt = $row->value;
break;
case 19:
$attending = $row->value;
echo “

“;
break;
default:
break;
}
}
}
?>

Name Number Attending Dinners Purchased Payment Type
” . $fname . ” ” . $lname . “ ” . $attending . “ ” . $dinners . “ ” . $pymt . “