<?php $link = maxdb_connect("localhost", "nonexisting_user", ""); if (!$link) { printf("Can't connect to localhost. Error: %s\n", maxdb_connect_error()); }?>