Re: Question on functions
| From: | Sebastian Mendel | Date: | Thu, 11 Nov 2004 13:20:50 +0000 |
| Subject: | Re: Question on functions | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201761@lists.php.net to get a copy of this message | ||
Jason wrote:
and? is it a typo in the message or in your source and solves this typo your problem? -- Sebastian Mendel www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com www.sf.net/projects/phpdatetime www.sf.net/projects/phptimesheetSorry, yeah it is a typois this a typo???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();@mysql_pconnect( $defined[9]shouldnt it be@mysql_pconnect( $defined[0]