Hello Arthur,
Wednesday, December 29, 2004, 12:37:30 PM, you wrote:
A> That's my piece of code (which is in a class in a file which is in the same
A> dir as config.php):
A> function reg($name, $pw, $ally, $act) {
A> include('config.php');
A> echo(DB_SERV_NAME . '<br>');
A> $dbp = mysql_connect(DB_SERV_NAME, DB_USR_NAME, DB_PW);
A> if(!$dbp) die ("MySQL-Fehler");
Show us the define statements? The code above is fine, assuming that
it could find config.php of course (swap it for a require to get a
fatal error).
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I am not young enough to know everything." - Oscar Wilde
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php