Re: Question on functions

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

 



Sorry, yeah it is a typo


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]




--
Jason Gerfen
jason.gerfen@xxxxxxxxxxxx

"And remember... If the ladies
 don't find you handsome, they
 should at least find you handy..."
             ~The Red Green show

--
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