Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: trondn/beersample-php
base: a3b70db8f0
...
head fork: trondn/beersample-php
compare: a07e217f4d
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 3 additions and 3 deletions.
  1. +2 −2 beers/save.php
  2. +1 −1  couchbase.php
View
4 beers/save.php
@@ -1,6 +1,6 @@
<?php
$cb = getCouchbaseHandle();
-$beer = $cb->get($id);
+$beer = $cb->get($id, $cas);
$obj = json_decode($beer);
/* Insert the updated values */
@@ -14,7 +14,7 @@
$obj->upc = $_POST["beer_upc"];
$obj->brewery_id = $_POST["beer_brewery_id"];
-if ($cb->set($id, json_encode($obj))) {
+if ($cb->set($id, json_encode($obj), $cas)) {
echo "<h3>\"" . $obj->name . "\" successfully updated</h3>";
} else {
?>
View
2  couchbase.php
@@ -2,7 +2,7 @@
/* This file contains the credentials used to access
* the Couchbase cluster.
*/
-define("COUCHBASE_CONFIG_HOST", "10.0.0.33");
+define("COUCHBASE_CONFIG_HOST", "127.0.0.1");
define("COUCHBASE_CONFIG_USER", "");
define("COUCHBASE_CONFIG_PASSWD", "");
define("COUCHBASE_CONFIG_BUCKET", "beer-sample");

No commit comments for this range

Something went wrong with that request. Please try again.