<?php
include 'muengine/all';
$db = new MuDatabase(); // Note that MuDatabase is the ONLY class we have to instanciate this way.
$db->setConnType(CONNTYPE_MSSQL);
$db->setHost('127.0.0.1');
$db->setUsername('sa');
$db->setPassword('sqlpassword');
$db->connect() or die('Could not connect to SQL database');
/* Note that we also could have done
$db->setConnType(CONNTYPE_MSSQL)->setHost('127.0.0.1')->setUsername('sa')->setPassword('sqlpassword')->connect()
Since all setters return the current object. */
?>