$sql = mysql_query("SELECT * FROM `categories` ORDER BY `id` ASC");
while( $r = mysql_fetch_object( $sql ) ){
print '<a href="/index/category/'. $r->id .'/">'. $r->thename .'</a> ';
}
Here's part of the source code.
<a href="/index/category/2/"></a> <a href="/index/category/3/"></a>
Any ideas? And yes, the field is called thename.
