Re: [PHP] Converting code to a function

2001-02-27 Thread Clayton Dukes
Thanks :-) - Original Message - From: "Simon Garner" <[EMAIL PROTECTED]> To: "Clayton Dukes" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 27, 2001 9:59 PM Subject: Re: [PHP] Converting code to a function > Clayton, >

Re: [PHP] Converting code to a function

2001-02-27 Thread Simon Garner
Clayton, The problem is that some of your variables, e.g. $HOSTNAME, $DB_USER, etc., are not global variables, and so are not accessible from inside the function. I recommend making those settings define()s instead of variables, but if you keep them as variables then you just need to add: B