Re: Question on functions

From: Date: Thu, 11 Nov 2004 13:49:58 +0000
Subject: Re: Question on functions
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.general 
Request: Send a blank email to php-general+get-201764@lists.php.net to get a copy of this message
Sebastian Mendel wrote:
Jason wrote:
Looks like you understand already. Did you have some broken code you wanted help with?
yeah.. I should have posted it first. Here it is: /* User Defined Variables */ $defined = array( "0" => "localhost",
                                "1" => "user",
                                "2" => "password" );
/* Database connection */ function db() { global $defined; if( connection_status() != 0 ) { $db = @mysql_pconnect( $defined[9], $defined[1], $defined[2] ) or die();
is this a typo???
    @mysql_pconnect( $defined[9]
shouldnt it be
    @mysql_pconnect( $defined[0]
Sorry, yeah it is a typo
and? is it a typo in the message or in your source and solves this typo your problem? a typo in the email...
-- Jason Gerfen jason.gerfen@scl.utah.edu "And remember... If the ladies don't find you handsome, they should at least find you handy..." ~The Red Green show

« previous php.general (#201764) next »