Permalink
Browse files

Minor updates to documentation so it fits correctly with the updated …

…layout
  • Loading branch information...
stefangabos committed Jan 30, 2019
1 parent 9135683 commit f0c3c5ff40aadb559eb7cf9aae25199ff474d4cb
Showing with 11 additions and 4 deletions.
  1. +11 −4 Zebra_Database.php
@@ -2366,9 +2366,9 @@ public function insert_id() {
* reserved words as column names) and values will be automatically {@link escape()}d in order to prevent SQL injections.
*
* <code>
* // presuming article_id is a UNIQUE index or PRIMARY KEY, the statement below will insert a new row for given
* // $article_id and set the "votes" to 0. But, if $article_id is already in the database, increment the votes'
* // numbers.
* // presuming article_id is a UNIQUE index or PRIMARY KEY, the statement below will
* // insert a new row for given $article_id and set the "votes" to 0. But, if $article_id
* // is already in the database, increment the votes' numbers.
* // also notice that we're using a MySQL function as a value
* $db->insert_update(
* 'table',
@@ -3949,7 +3949,14 @@ public function truncate($table, $highlight = false) {
* ...is equivalent to
*
* <code>
* $db->query('UPDATE table SET column = column + ? WHERE criteria = ?', array($value, $criteria));
* $db->query('
* UPDATE
* table
* SET
* column = column + ?
* WHERE
* criteria = ?
* ', array($value, $criteria));
* </code>
*
* You may also use any of {@link http://www.techonthenet.com/mysql/functions/ MySQL's functions}

0 comments on commit f0c3c5f

Please sign in to comment.