Identify and Style the Menu Item for the Current Page
<p>I am having trouble making the current item selected in my menu, here is the code:</p>

<pre><code>    $sql = "SELECT * FROM kurchi_pages ORDER BY id LIMIT 1,5";
    $res = mysql_query($sql);

    $site_url = "http://swenflea/swenflea.com/";

    if(!isset($_GET['page']) || !isset($_GET['post'])) {
        echo '&lt;li id="current"&gt;&lt;a href="' . $site_url . '"&gt;Home&lt;/a&gt;&lt;/li&gt;';
    } else {
        echo '&lt;li&gt;&lt;a href="' . $site_url . '"&gt;Home&lt;/a&gt;&lt;/li&gt;';
    }


    if ( isset($_GET['page'] ) || isset($_GET['post'] )) {
        while($row = mysql_fetch_assoc($res)) {
        if ($_GET['page'] != "" . $row["url"] . "" || isset($_GET['page'] ) ) 
        {
            $itemis = '&lt;li&gt;&lt;a href="' . $site_url . '' . $row['url'] . '/"&gt;' . $row['nav_name'] . '&lt;/a&gt;&lt;/li&gt;'; 
        } else {
            $itemis = '&lt;li id="current"&gt;&lt;a href="' . $site_url . '' . $row['url'] . '/"&gt;' . $row['nav_name'] . '&lt;/a&gt;&lt;/li&gt;';
        }
        echo $itemis;
        }
    } else {
        while($row = mysql_fetch_assoc($res)) {
            echo '&lt;li&gt;&lt;a href="' . $site_url . '' . $row['url'] . '/"&gt;' . $row['nav_name'] . '&lt;/a&gt;&lt;/li&gt;'; 
    }
    }
</code></pre>

<p>Why doesn't this work?</p>
