DELETE not working in phpGrid

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cecilchampenois
Forum Commoner
Posts: 47
Joined: Thu Nov 06, 2014 10:29 am
Location: Gilbert, Arizona
Contact:

DELETE not working in phpGrid

Post 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
Cecil Champenois
Post Reply