|
|||
|
Hi,
I was wondering if someone could tell me how to update a record in a table with 2 properties in the where clause. Code:
$updaterow = new Categories();
$data = array(
'name' => $name,
'description' => $description,
'active' => $active,
);
$where = $updaterow->getAdapter()->quoteInto('id = ?', $id);
$updaterow->update($data, $where);
So I want to check if ID = a value, and that userid = a value. Thanks ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
|
|