quick question:
I have a php page with several functions defined on it. I want a link that when clicked, looks for two criteria within my mysql table and displays the results [U]seperately
So, to do the first half, I’d do this:
[code=php]echo “<div align=left><a href=”{$_SERVER[‘PHP_SELF’]}” .
“?action=showmore&id=$id”><font size=2><b>$date </b> $subject</font></a>” .
“</div>”;
In this case, “showmore” comes from here underneath SWITCH:
[code=php]case ‘showmore’:
displayAnotherItem($_GET[‘id’]);
break;
I haven’t been able to figure out to combine the two functions on one page, so I figured I could get the url to call upon both, so at first I expected this to work:
[code=php]echo “<div align=left><a href=”{$_SERVER[‘PHP_SELF’]}” .
“?action=showmore&id=$id?action=catlist&catlist=$catlist”><font size=2><b>$date </b> $subject</font></a>” .
“</div>”;
Where “catlist” comes from here underneath SWITCH:
[code=php] case ‘catlist’:
displayCatList($_GET[‘category’]);
break;
But, of course it doesn’t work.
I haven’t been able to find any manuals or tutorials that show what I’m trying to do, despite how basic my desire is. How do I construct the URL? Or am I simply going about this all wrong?