haha i figured it out... I made a simple mistake before i had this:
function add_runner_limit($ident = "", $first = "", $last = "", $year = "", $age = "", $gender = "", $gender= "", $invitational = "") {
$sql = sprintf("INSERT INTO %s (cid, user_id, first, last, year, age, gender, grade, invitational, last_change) VALUES (NULL, %s, %s, %s, %s, %s, %s, %s, %s, NOW())",
HIGH_TABLE, $_SESSION['user_id'], $this->ins_string($first), $this->ins_string($last),
$this->ins_string($year), $this->ins_string($age), $this->ins_string($gender), $this->ins_string($grade), $this->ins_string($invitational));
}
now its this and it works i had two $gender
function add_runner_limit($ident = "", $first = "", $last = "", $year = "", $age = "", $gender = "", $grade = "", $invitational = "") {
$sql = sprintf("INSERT INTO %s (cid, user_id, first, last, year, age, gender, grade, invitational, last_change) VALUES (NULL, %s, %s, %s, %s, %s, %s, %s, %s, NOW())",
HIGH_TABLE, $_SESSION['user_id'], $this->ins_string($first), $this->ins_string($last),
$this->ins_string($year), $this->ins_string($age), $this->ins_string($gender), $this->ins_string($grade), $this->ins_string($invitational));
}