calling function from function?
| From: | Jason | Date: | Thu, 11 Nov 2004 19:26:17 +0000 |
| Subject: | calling function from function? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-201784@lists.php.net to get a copy of this message | ||
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 ... } what am i missing here? i get errors if i try to pass $db to logs. i.e. logs( $db ); -- 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