Okay, so you can do this.
Change your links to be this format
<a href='forum.php?&cat=electronics'>Electronics<a/>
At the start of your page put this in
PHP Code:
$url = $_SERVER['REQUEST_URI'];
//from the address get the categorey
//Not sure how $url will be if it will have the and symbol or the &
echo $url;
// so by result of this echo if it is & change the & below to that
$page = explode ("forum.php?&cat=", $url);
$cat = $page[1];
Then use the variable $cat in your sql statment to get the results you want displayed.
You might want to initialize $cat as something or use an if statment around your sql so it isn't triggered when $ is empty or not set.
Bookmarks