Pagination: make current page bold
<p>The following pagination works but does not make the current page, bold and unclickable (no href)</p>

<p>Whats wrong?</p>

<pre><code>$totalcount = mysql_query("SELECT COUNT(*) as 'total' FROM $table");
$row = mysql_fetch_assoc($totalcount);

$pages = ceil($row['total'] / $perpage);

     for ($i = 1; $i &lt;= $pages; $i++) {

        if ($i != $page)
            echo "&lt;a href=\"index.php?page=$i\"&gt;$i&lt;/a&gt; ";
        else
            echo "&lt;b&gt;" . $i . " &lt;/b&gt;";

    }
</code></pre>
