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 );
What's missing? The error message. Include it, and the offending line(s) of code, and ask again.
--Rick
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php