I have a sql string that I want to echo a value from a form into the string to DROP a table. Currently I am using the following string
$sql4 = "DROP TABLE gs.gs_object_data_<? echo $rows['$imei']; ?>";
This is not echoing the IMEI that I have drawn from a $_POST on the previous page.
I have also tried the following strings to no avail.
$sql4 = "DROP TABLE gs.gs_object_data_'%$imei%'";
$sql4 = "DROP TABLE gs.gs_object_data_'".$imei."'";
gs_object_data is a constant in all tables just the imei differes
I need a result as such gs_object_data_111111 the imei on previous page will be 111111
Any suggestions will be appreciated.