include("top.php"); if($p=='delete'){ print("
| Delete Your Search | |
| ");
if($form=='complete'){print("Your search has been Permanently removed from the system. Click Here to return to searching jobs"); $delete=mysql_query("DELETE FROM my_searches WHERE email='$email' && id=$id");} else{print(""); } print(" | |
| Save Your Job Search | |
| ");
$num_searches=mysql_query("SELECT id FROM my_searches WHERE email='$email'");
$num_searches=mysql_num_rows($num_searches);
if($email=='' or $password==''){
print("You must be a registered member, in order to gain access to saving your search results. Click Here to register a new account"); } elseif($num_searches<=4){ if($name!='' && $name!=''){print("Your search has been successfully added to your account. Click Here to return to searching jobs");$time=time(); $insert=mysql_query("INSERT INTO my_searches(id, email, name, keywords, category, country, province, metro, city, zip, distance) values('$time', '$email', '$name', '$keywords', '$category', '$country', '$province', '$metro', '$city', '$zip', '$distance')");} else{ if($distance!=''){$distance2="within $distance KM";} print(""); } } else{ print("You may only save up to 5 searches. Click Here to return to searching jobs"); } print(" | |