validate_id($id); $result_link = $db->execute_query("SELECT fic_url, hits FROM ".FICS_TABLE." where id ='$id'"); $info = $result_link[0]; $hits = $info['hits']; $hits++; $query = "UPDATE ".FICS_TABLE." SET date = date, hits = $hits WHERE id = '$id'"; $update_query = $db->execute_mod_query($query); $url = $info['fic_url']; Header("Location: $url"); ?>