db->update

db->update

michelekmichelek Posts: 24Questions: 5Answers: 0

How can I do an db()->update instead of insert???

$e->db()->insert( 'test', array(
        'test1' => 'ciao',
        'test2' => json_encode( $values['pippo']['avvisa'] )
    ));

Replies

  • allanallan Posts: 61,892Questions: 1Answers: 10,144 Site admin

    Yes - there is an update method.

    That page also lists all the other methods that are available on the Database class.

    Allan

This discussion has been closed.