<?php $link = maxdb_connect("localhost", "XXXXXXXX", "YYYYYYYYY"); if (!$link) { printf("Can't connect to localhost. Errorcode: %d\n", maxdb_connect_errno()); }?>