Re: calling function from function?
| From: | Curt Zirzow | Date: | Thu, 11 Nov 2004 20:08:31 +0000 |
| Subject: | Re: calling function from function? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201792@lists.php.net to get a copy of this message | ||
* Thus wrote Jason:
> function db( $host, $user, $pass, $dbnam ) {
> $db = @mysql_pconnect( $host, $user, $pass )or die( mysql_error( $db ));
> @mysql_select_db( $dbnam )or die( mysql_error( $db ) );
> return $db;
> }
>
> function logs() {
> global $defined;
>
> db( $defined[9], $defined[1], $defined[2], $defined[3] );
> ... do some processing ...
>
> }
You probably should read chapter III of the manual:
http://php.net/langref
Curt
--
Quoth the Raven, "Nevermore."