From 37c7e787e78ffd1d302950d711f9c3ddab945c58 Mon Sep 17 00:00:00 2001 From: Diego Date: Mon, 25 Apr 2016 13:13:04 -0300 Subject: [PATCH 1/3] Update README.md $result is an object, that throws an exception when you run the demo --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0fbb5cd..0c88f6b 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ Example $document = array('someKey' => 'someValue'); $result = r\table("tablePhpTest")->insert($document) ->run($conn); + $result = json_encode($result); echo "Insert: $result\n"; // How many documents are in the table? From 31591a27d70b8a1e0f607a77be2c61d5355aef58 Mon Sep 17 00:00:00 2001 From: Diego Vieira Date: Sat, 17 Dec 2016 09:01:49 +0000 Subject: [PATCH 2/3] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0c88f6b..5ce8d99 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,10 @@ Example $result = r\table("tablePhpTest")->insert($document) ->run($conn); $result = json_encode($result); - echo "Insert: $result\n"; - + echo "Insert:\n"; + print_r($result); +    echo "\n"; +     // How many documents are in the table? $result = r\table("tablePhpTest")->count()->run($conn); echo "Count: $result\n"; From 790ba0db441bb3945252669e412932fb0a52f9c6 Mon Sep 17 00:00:00 2001 From: Diego Vieira Date: Sat, 17 Dec 2016 09:02:01 +0000 Subject: [PATCH 3/3] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 5ce8d99..f97cd5e 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,6 @@ Example $document = array('someKey' => 'someValue'); $result = r\table("tablePhpTest")->insert($document) ->run($conn); - $result = json_encode($result); echo "Insert:\n"; print_r($result);    echo "\n";