"); $main_table = "Triathlons"; $field_lead = ""; $year_part = date( "Y", strtotime("-6 months") ); $min_date = ""+$year_part+"-01-01"; // start date for races that display $base_url = "https://www.slowtwitch.com/calendar/"; echo("

".$main_table." Admin:"); $unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table." WHERE ".$field_lead."valid = 0 AND ".$field_lead."date >= '".$min_date."'")); echo("
Validate Entries (".$unvalid_count.")"); $unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table."Edits")); echo("
Validate Edits (".$unvalid_count.")"); $main_table = "Retailers"; $field_lead = "retailer_"; $base_url = "https://www.slowtwitch.com/retailers/"; echo("

".$main_table." Admin:"); $unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table." WHERE ".$field_lead."valid = 0")); echo("
Validate Entries (".$unvalid_count.")"); $unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table."Edits")); echo("
Validate Edits (".$unvalid_count.")"); $main_table = "Triclubs"; $field_lead = "triclub_"; $base_url = "https://www.slowtwitch.com/triclubs/"; echo("

".$main_table." Admin:"); $unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table." WHERE ".$field_lead."valid = 0")); echo("
Validate Entries (".$unvalid_count.")"); $unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table."Edits")); echo("
Validate Edits (".$unvalid_count.")"); $main_table = "Runshops"; $field_lead = "runshop_"; $base_url = "https://www.slowtwitch.com/runshops/"; echo("

".$main_table." Admin:"); $unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table." WHERE ".$field_lead."valid = 0")); echo("
Validate Entries (".$unvalid_count.")"); $unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table."Edits")); echo("
Validate Edits (".$unvalid_count.")"); $main_table = "Fitters"; $field_lead = "fitter_"; $base_url = "https://www.slowtwitch.com/fitters/"; echo("

".$main_table." Admin:"); $unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table." WHERE ".$field_lead."valid = 0")); echo("
Validate Entries (".$unvalid_count.")"); $unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table."Edits")); echo("
Validate Edits (".$unvalid_count.")"); $main_table = "Coaches"; $field_lead = "coach_"; $base_url = "https://www.slowtwitch.com/coaches/"; echo("

".$main_table." Admin:"); $unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table." WHERE ".$field_lead."valid = 0")); echo("
Validate Entries (".$unvalid_count.")"); $unvalid_count = mysql_num_rows(mysql_query("SELECT * FROM ".$prefix.$main_table."Edits")); echo("
Validate Edits (".$unvalid_count.")"); echo (""); ?>