I use CODEIGNITER, this a example whit I call a SP in MySQL is:
public function InsertDataSistra($NumPart, $typeChild){ $sql = $this->db->query("CA