Posts Tagged ‘Db’

Drupal 6 installation problem stopped on database configuration settings step

Wednesday, March 18th, 2009

Today when I tried to install drupal but the installation wizard couldn't continue.

Solution:
Edit /sites/default/settings.php and change

$db_url = 'mysql://username:password@localhost/databasename';

to the actual db settings and then reload the page (CTRL+R) or press F5 in your browser.

Good Luck

How to increase a database table column value in Zend Framework

Saturday, February 28th, 2009

... in a class extending Zend_Db_Table

$db = $this->getAdapter();
....
$db->update('table', array('views' => new <strong>Zend_Db_Expr</strong>("views + 1")), 'id = ' . $id);
....