Re: wrong value from define

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux