<pre> 
<? 
require("DB.inc"); 
$db = new DB; 
$db->setProperty("showErrors",true); 
$db->setProperty("hostname","localhost"); 
$db->setProperty("username","root"); 
$db->connect(); 
$db->selectDB("kulturbanken"); 
 
if(!$_GET) { 
    $RS = $db->execute("select * from users"); 
while($row = $RS->next())  
    echo "<a href='?object=".$RS."'>{$row->username}</a><br>"; 
} else { 
    $o = $_GET["object"]; 
    print_r($o); 
} 
     
?> 
 
 |