SWITCH with a $_GET

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I have a url that ends with ?pid=sqlall. I am using the following to
try and get at the "sqlall". I have read many sites to no avail.

switch ($_GET['pid']) {
case 'sqlall':
$page->assign('pagetitle', 'All Users');
$page->assign('tableheader', 'All Users');
$page->assign('sqlfile', 'sql_all.php');
case 'sqlprof':
$page->assign('pagetitle', 'All Users');
$page->assign('tableheader', '» All User Profiles');
$page->assign('sqlfile', 'sql_prof.php');

if the url is http://localhost/main.php?pid=sqlall or ?pid=sqlprof then
I want to case to assign. This is in conjuction with Smarty.
Any suggestion would be helpful.


Site Timeline