note 7615 deleted from define by ronabop
| From: | ronabop@php.net | Date: | Sun, 03 Sep 2000 10:37:16 +0000 |
| Subject: | note 7615 deleted from define by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4045@lists.php.net to get a copy of this message | ||
Actually the DEFINE function does not seem to work well with Zend lp2.
Here's the problem. 1 Script 1 include file:
Script:
connect_db();
do_somedbstuff();
Include:
function connect_db(){
$db=... mysql connect yayda.
define("DB_LINK",$db);
}
function do_somedbstuff() {
$result=mysql($somequery, DB_LINK); <-- fails.
}
Found this out when I needed it the most.