Created
November 15, 2020 17:37
-
-
Save ksmylmz/6d8cb7b47c9de8a5190f9b25cb40d413 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function registerOrder($order) | |
{ | |
//formu validate edelim | |
if(!isValidForm()) | |
{ | |
return json_encode(["status"=>false, "error"=>"Form bilgileri doğrulanamadı"]]) | |
} | |
$isSavedOrder = saveOrder($order); | |
//formu validate edelim | |
if(!$isSavedOrder) | |
{ | |
return json_encode(["status"=>false, "error"=>"Sipariş Kaydedilemedi"]]) | |
} | |
return json_encode(["status"=>true, "error"=>"Sipariş Kaydedildi"]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment