<?php

class RequestData extends AppModel {
	public $name = "RequestData";

	public function insertRequest($obj){
		$result = $this->query("CALL insert_request(" .
												"'" .
												$obj->seiKanji . "','" .
												$obj->meiKanji . "','" .
												$obj->seiKana . "','" .
												$obj->meiKana . "','" .
												$obj->birthDateYear . $obj->birthDateMonth . $obj->birthDateDay . "','" .
												$obj->gender . "','" .
												$obj->genderText . "','" .
												$obj->zip1 . "','" .
												$obj->zip2 . "','" .
												$obj->address1 . "','" .
												$obj->address2 . "','" .
												$obj->address3 . "','" .
												$obj->address4 . "','" .
												$obj->tel1 . "','" .
												$obj->tel2 . "','" .
												$obj->tel3 . "','" .
												$obj->mTel1 . "','" .
												$obj->mTel2 . "','" .
												$obj->mTel3 . "','" .
												$obj->email . "','" .
												$obj->occupation . "','" .
												$obj->occupationText . "','" .
												$obj->ipAddress . "','" .
												$obj->sessionId . "')"); 
	}
}

?>