databases:school
table :student
table :teacher
select name="booktype"
$selectOption = $_GET['booktype'];
can I use? ==> select * from **$selectOption** where class = 3A
databases:school
table :student
table :teacher
select name="booktype"
$selectOption = $_GET['booktype'];
can I use? ==> select * from **$selectOption** where class = 3A
yes you can:
$selectOption = pg_escape_string($_GET['booktype']);
use "select * from {$selectOption} where class = 3A"
or "select * from ".$selectOption." where class = 3A"