Is more easy in this way ...
PHP Code:
<?php
function get_articles_cat($cat)
{
// sql stuff searching for articles from categories $cat
}
$cat = $_GET['cat'];
if ($cat != "") get_articles_cat($cat);
?>
if you trto doit with if's you will need to add a if for each category added
Regards