include("pollConnect");
//get poll info
$uid="99945678901234567890123456789012";
$pageTitle="Enter New Ride";
$mysqlLink=pollConnect();
//if we have a responseProfileId then we are editing
if (!empty($rid)){
$pageTitle="View Ride";
if ($notFirst!="1"){
$formData=getValues("rides", "rid", $rid, "*", $mysqlLink);
if (sizeOf($formData)<=1){
$msg.="No ride found with that id!";
}
else {
$uid=$formData[0];
$rideDate=$formData[1];
$distance=$formData[2];
$notes=$formData[3];
$rid=$formData[4];
$title=$formData[5];
$attending=$formData[6];
}
}
}
// if we don't have a record, print error, footer and quit
if (!empty($msg)){
include("../header.html");
print "
".$msg."
";
print "home";
include("../footer.html");
exit;
}
else {
// get all the seperate photos
$query="select * from ridePhotos where rid='".$rid."'";
$mysql_result=mysql_query($query, $mysqlLink);
if ($mysql_result == false) {
print( "mysql_query Failure!
");
echo mysql_errno().": ".mysql_error()."
";
exit;
}
while ($photos = mysql_fetch_array($mysql_result)){
$photosToPrint .="".$photos[title]."
";
$photosToPrint .="
"; } } include("../header.html"); ?>
| Ride Date: | |
| Distance: | |
| Notes: |
|
| Attending: |
|