My favorites | Sign in
Project Home Downloads Wiki Source
Search
for
Updating  

Featured
Updated Oct 30, 2008 by tewo...@gmail.com

Update a row in a table

Introduction

Updating a row in a table. The example is based on the animals_db.

Details

Get the parrot's data and modify it.

$rowData             = $browser->getRow(3);
$rowData['lifespan'] = 65;

Update the parrot's data in tbl_animals.

$browser->updateRow(3, $rowData);

The following SQL is executed: UPDATE tbl_animals SET NAME= 'parrot',TYPE= 'bird',LIFESPAN= 65 WHERE (id = 3)


Sign in to add a comment
Powered by Google Project Hosting