Subversion Repositories PHPX

Compare Revisions

Last modification

Ignore whitespace Rev 61 → Rev 60

/trunk/Db/Database.php
694,9 → 694,8
* @param array|string $where
* Only the records matching this condition are updated
* @return bool
* @see PDOStatement::execute()
*/
public function update ($tables, array $updates, $where = null)
public function update($tables, array $updates, $where = null)
{
if (!$tables)
{
804,9 → 803,10
* and the values are not in column order (default: <code>null</code>);
* is ignored otherwise. <strong>You SHOULD NOT rely on column order.</strong>
* @return bool
* <code>true</code> if successful, <code>false</code> otherwise
* @see PDOStatement::execute()
*/
public function insert ($table, $values, $cols = null)
public function insert($table, $values, $cols = null)
{
if ($cols != null)
{