Can I use a php session username to select a mysql table?
In my site I have a situation where
$_SESSION['MM_Username']
will be the same name as a prepared MYSQL table.
(There will be a limited number of Users and tables)
Instead of writing a long series of "else if" to cope with each user on each page, I wish to employ the $_SESSION['MM_Username'] to point to the correct MSQL table.
Take for example
<?php $query_rstPalabs = "SELECT * FROM patricia WHERE yesno >= 1"; ?>
How can I substitute the $_SESSION['MM_Username'] for "patricia" here in a way that the SQL would select the table "patricia"?
Please be aware that I am not a professional designer, and flounder in the shallows of PHP/MSQL. I use DW2004MX to help.
Thank you.
