<? 
require_once('mtac.php'); 
 
$dbhost = "localhost"; 
$dbuser = "test"; 
$dbpass = "fortytwo"; 
 
$link=mysql_connect($dbhost,$dbuser,$dbpass); 
mysql_select_db("test"); 
 
try { 
    $x = new mtac($link,"mtacuser","Frank Jones"); 
} catch (Exception $e) { 
     
    echo "Caught exception: " . $e->getMessage() . "\n"; 
    exit; 
} 
 
var_export($x); 
 
$x->d['password'] = md5('foobar'); 
$x->put(); 
?> 
     
 
 |