$crud = new grocery_CRUD(); $crud->set_table('staff'); $crud->where ('id',$_SESSION['myID']); $crud->$crud->unset_add(); $output = $crud->render(); $this->_view_output($output);
The result seem correct and listed one record that matched with myID.
But, I can simply
view/edit another row by modify URL (3.jpg)
add a row by modify the URL (4.jpg)
delete a row by same method
or do this my modify source code in a browser.
Is there any (easy is better) way to prevent this? Thank you.