"2", "fpath"=> $file, 'company'=> $_REQUEST['up_vendor'], "msg" => "upload sucessful!", )); */ $data = readMyExcel($file); $msg[] = addslashes("Finished excel read!
"); $msg_op = dbOp($data, $company); if($msg_op == false) exit(); //if return false, function dbOp() will echo massage to ajax $msg = array_merge($msg,$msg_op); echo json_encode(array( "status" => "1", "fpath"=> $file, 'company'=> $_REQUEST['up_vendor'], "msg" => $msg, )); ?>