I have passed variable using POST method and in datagrid file I have written query as:
if (!empty($_POST['name']))
{
$_SESSION['na']=$_POST['name']
}
$fac=$_SESSION['na']
$g->select_command = "SELECT * FROM topicreport WHERE fac_name='" . fac . "'";
When I am using given POST and SESSION variable to write SELECT query then I am able to see records according to query but I am not able to "Edit" or "Delete" records but when I am using below written code:
$g->table = "topicreport"; OR
$g->select_command = "SELECT * FROM topicreport";
the I am able to Edit or Delete the Records.
Please Help
3 Answers
Hello,
Please debug the edit/del operations using firebug. It will tell the exact reason.
Your Answer