Re: Using include() to specify mysql_connection??

From: Date: Sat, 17 Feb 2001 02:30:55 +0000
Subject: Re: Using include() to specify mysql_connection??
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-6709@lists.php.net to get a copy of this message
In article <96klap$c8p$1@toye.p.sourceforge.net>, boclair@bigpond.net.au ("Boclair") wrote: > Is it possible to place the mysql connect and mysql select db functions in > an include file and to open the connection and use the database in a PHP > file using include(); ? > > All that happens when I attempt it is that the text of the include file is > dumped, the connection to the mysql server is not opened and the variables > are not created. To be parsed as PHP code, the contents of the included file also need to be in PHP mode <?php ... ?>. -- CC

« previous php.db (#6709) next »