I want to use php variable as table for the phpGrid as code shown below:
$getRange=$_POST[‘game’];
……
……
$g->select_command = “select * from $getRange ” ;
$g->table = ” $getRange “;
……
……
it keeps given errors as follows:
Couldn’t execute query. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE 1=1 LIMIT 1 OFFSET 0’ at line 1 – select * from WHERE 1=1 LIMIT 1 OFFSET 0
Your Answer