Function function admin_update($table=NULL,$id=NULL) { $id = convert_uudecode(base64_decode($id)); $status = $this->$table->findById($id); $data[$table]['id'] = $id; if($status[$table]['status']=='Inactive') { $this->$table->updateAll(array($table.'.status'=>'"Active"'),array($table.'.id'=>$id)); } else { $this->$table->updateAll(array($table.'.status'=>'"Inactive"'),array($table.'.id'=>$id)); ...
Coding Cheatsheets - Learn web development code and tutorials for Software developers which will helps you in project. Get help on JavaScript, PHP, XML, and more.