Walk History


Click Here To Enter Another Walk              Click Here To Read Blog Articles

user_login;
$walker_n = $current_user->user_firstname;
if (isset($_GET[“delete”]) && $_GET[“delete”] != “” && isset($_GET[“confirm”]) && $_GET[“confirm”] == “1” ) {
$isthisme = $wpdb->get_row(“SELECT user_login FROM user_walk WHERE id = “.$_GET[“delete”]);
if ($isthisme->user_login == $walker_u) {
$wpdb->query(“DELETE FROM user_walk WHERE id = “.$_GET[“delete”]);
$not = “”;
} else {
echo “

This is not your record!

“;
$not = “NOT”;
}
}
$info = $wpdb->get_results(“SELECT id, date, duration, distance, location, steps, weight, walkers_spotted, money_found, weather FROM user_walk WHERE user_login = ‘”.$walker_u.”‘”);
if (isset($_GET[“delete”]) && $_GET[“delete”] != “” && !isset($_GET[“confirm”])) {
?>

Are you sure you want to delete this record?       No

Deleted!

ID, ‘MEASUREMENT’);
$nmeasure = cimy_uef_sanitize_content($measure);
if ($nmeasure == “Kilometers”){
$lentext = “km”;
$distance = round($i->distance * 1.609344, 2);
$weighttext = “kg”;
$weight = round($i->weight * 0.45359237, 2);
$multi = 1.609344;
} else {
$lentext = “miles”;
$distance = $i->distance;
$weighttext = “lbs”;
$weight = $i->weight;
$multi = 1;
}
?>


Delete/Edit Date Duration Distance Location Weight   
date ?> duration; ?> minutes location == “NULL”) {
$i->location = “”;
}
echo $i->location

?>

get_row(“SELECT ROUND(AVG(distance), 2) as avgdis, ROUND(AVG(duration), 2) as avgdur FROM user_walk WHERE user_login = ‘”.$walker_u.”‘”);
echo “Average Distance: “.round($average->avgdis * $multi, 2).” “.$lentext.”
“;
echo “Average Duration: “.$average->avgdur.” minutes

“;
$totals = $wpdb->get_row(“SELECT ROUND(SUM(distance), 2) as totdis, ROUND(SUM(duration), 2) as totdur FROM user_walk WHERE user_login = ‘”.$walker_u.”‘”);
$totalhours = round($totals->totdur / 60, 2);
echo “Total Distance: “.round($totals->totdis * $multi, 2).” “.$lentext.”
“;
echo “Total Duration: “.$totalhours.” hours

Print This Page Print This Page

“;
} else {

echo “

You must Log In or Register
Before You Can View Your Walking History

“;
}?>

Log In By Clicking Here

Register By Clicking Here