php - PDO Database Class -


hello using this php pdo database class , i'm using easycrud class there. in deleting data using easycrud class sample code:

$person->id  = "17"; $deleted     = $person->delete(); 

the equivalent of in sql "delete persons id = 17 limit 1" , problem if want delete data , run sql this?

"delete persons username='robert' , email='email@gmail.com'" 

how can run using class? thank you.

it looks update attribute , call save().

$person->id  = "16"; $deleted     = $person->save(); 

Comments