Page 1 of 1

DELETE not working in phpGrid

Posted: Mon Feb 02, 2015 9:39 am
by cecilchampenois
Anyone using phpGrid here?

Although the following code is set in my php program, the DELETE function does not seem to get rid of the selected record. The record in the grid appears to disappear upon deleting it. However, when I use another php program to list the users, the user's record is still there. The "D" portion of "CRUD" menas to delete, at least that is what you are telling phpGrid, but it isn't working. One article on phpGrid's website says to use simple SQL statements. The below SQL statement cannot by any means be consdiered complex.

$dg = new C_DataGrid("SELECT login_id, client_no, access_level, full_name, email_address, allow_view_log FROM logins", "login_id", "logins");
$dg -> enable_edit("FORM", "CRUD");

http://phpgrid.uservoice.com/knowledgeb ... ot-working