static public function addTransfer() { $result = TransferCollection::verifyFields(); if(count($result)) return ($result); // if all right, save data. $query = "INSERT INTO `transfers` ( `id` , `id_client` , `name` ) VALUES ( NULL , '".$_POST['client']."', '".$_POST['aname']."');"; //die($query); mysql_query($query); header('location: custody_created.php'); }