Re: Problem - Losing selected db on mysql calls....

From: Date: Mon, 02 Oct 2000 08:01:51 +0000
Subject: Re: Problem - Losing selected db on mysql calls....
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-3206@lists.php.net to get a copy of this message
Quoting Scott Brown who wrote on Sun, Oct 01, 2000 at 09:44:20PM -0400: > If this is a FAQ, kindly point me to it... I cant seem to find any > references around... The PHP programmers manual... http://www.php.net/manual/ > function OpenDSN() > { > $_uid = "...."; > $_pwd ="...."; > $connTemp = mysql_connect("localhost",$_uid,$_pwd); This function needs to declare connTemp as global global $connTemp all variables are default local in php functions. Koos van den Hout -- Koos van den Hout, PGP keyid RSA/1024 0xCA845CB5 via keyservers koos@kzdoos.xs4all.nl or DSS/1024 0xF0D7C263 -?) Fax +31-30-2817051 Visit my site about books with reviews /\\ http://idefix.net/~koos/ http://www.virtualbookcase.com/ _\_V

« previous php.db (#3206) next »