Seattle Boat Show Bus

January 30, 2016

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:
$tickets = $row->value;
break;
case 8:
$attending = $row->value;
break;
case 9:
$pymt = $row->value;
break;
case 18:
$names = “”;
$addname = 0;
$namelist = “”;
$arr = str_split($row->value, 1);
$len = strlen($row->value);
if($len > 0) {
for ($i = 0; $i < $len; $i++) { if($arr[$i] == "\"") { if($addname == 1) { $addname = 0; if(strlen($namelist) > 0 && $len – $i > 3) {
$namelist = $namelist . “, “;
} //If(strlen…
} //If(addname…
else {
$addname = 1;
}
} //if($arr[$I]…
else {
If($addname == 1) {
$namelist = $namelist . $arr[$i];
} //if($addname…
} //else…
} //for…
} //if not…
$names = $namelist;

echo “

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

Name Number Attending Tickets Purchased Attending Payment Type
” . $fname . ” ” . $lname . “ ” . $attending . “ ” . $tickets . “ ” . $names . “ ” . $pymt . “