Hi!
i have php page that displays records from mysql base.
on that page i have link like this:
<a href="mypage.php?option1">option1</a>
("option1" is name of one of my tables in db)
now i want to load that page and assign this value "option1" as string to
my variable "table".
I tried this:
$table=$_SERVER['QUERY_STRING'];
$query_rs_komp = "SELECT * FROM " . $table;
but it fills my $table var with "database.option1", and i need only
"option1"
Also i'll need help with checking if anything was sent to page anyway - so
if it's first time someone opens page, default value is assigned to var
$table.
please if anyone has idea?