0

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.

kheel
  • 1
  • 1

1 Answers1

0

It is possible but a very bad practice and the way of doing it is different.

Atul Stha
  • 1,404
  • 8
  • 23
  • 46