I have a variable $table which will hold the value of the user input I want to use the variable $table in my sql statement after the FROM.
Ex:
Select * FROM $table;
I want to know if its possible how I have written it.
I have a variable $table which will hold the value of the user input I want to use the variable $table in my sql statement after the FROM.
Ex:
Select * FROM $table;
I want to know if its possible how I have written it.
It is possible but a very bad practice and the way of doing it is different.