I have unreadable error whhile adding new record. How to debug the query, so i can check it whether my code or my table setting that have an error…?
2 Answers
By default, if your query have sql syntax errors, it'll be shown in error box. In case of some logic error you can debug in this way.
Search for this code in core lib (jqgrid_dist.php)
$sql = "INSERT INTO {$this->table} $insert_str";
and
$sql = "UPDATE {$this->table} $update_str WHERE $pk_field = '$id'";
and put after these statements.
phpgrid_error($sql);
It will show you queries in error box.
Your Answer