From 4cb206dc44685b4a674702cc75f56dc60c37c5e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bercan=20=C3=96zcan?= Date: Sat, 14 Jan 2017 22:20:07 +0200 Subject: [PATCH] Update customers.php --- src/routes/customers.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/routes/customers.php b/src/routes/customers.php index 30a4aa0..d7e2738 100644 --- a/src/routes/customers.php +++ b/src/routes/customers.php @@ -31,7 +31,7 @@ $db = null; echo json_encode($customers); } catch(PDOException $e){ - echo '{"error": {"text": '.$e->getMessage().'}'; + echo '{"error": {"text": '.$e->getMessage().'} }'; } }); @@ -52,7 +52,7 @@ $db = null; echo json_encode($customer); } catch(PDOException $e){ - echo '{"error": {"text": '.$e->getMessage().'}'; + echo '{"error": {"text": '.$e->getMessage().'} }'; } }); @@ -87,10 +87,10 @@ $stmt->execute(); - echo '{"notice": {"text": "Customer Added"}'; + echo '{"notice": {"text": "Customer Added"} }'; } catch(PDOException $e){ - echo '{"error": {"text": '.$e->getMessage().'}'; + echo '{"error": {"text": '.$e->getMessage().'} }'; } }); @@ -133,10 +133,10 @@ $stmt->execute(); - echo '{"notice": {"text": "Customer Updated"}'; + echo '{"notice": {"text": "Customer Updated"} }'; } catch(PDOException $e){ - echo '{"error": {"text": '.$e->getMessage().'}'; + echo '{"error": {"text": '.$e->getMessage().'} }'; } }); @@ -155,8 +155,8 @@ $stmt = $db->prepare($sql); $stmt->execute(); $db = null; - echo '{"notice": {"text": "Customer Deleted"}'; + echo '{"notice": {"text": "Customer Deleted"} }'; } catch(PDOException $e){ - echo '{"error": {"text": '.$e->getMessage().'}'; + echo '{"error": {"text": '.$e->getMessage().'} }'; } -}); \ No newline at end of file +});