/**
* Update Where
*
* */
public function updateWhere($desc, $id)
{
// SQL update in JSON format
$json = ' query: [ { table: "books" , values: { description: "' . $desc . '" } , where: { id: ' . $id . ' } } ] ';
// Executes the SQL and stores the result
$result = PDO4You::update($json);
echo '<div class="code title">Demo with the old method PDO4You::update()</div>';
echo '<div class="code debug">PDO4You::update(' . $this->getQuery($json) . '); ' . $this->getResult($result) . '</div>';
}