Re: calling function from function?

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

 



* 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."

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