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
: But to do them as constants instead, do: Hope this helps. Cheers Simon Garner - Original Message - From: "Clayton Dukes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 28, 2001 3:51 PM Subject: [PHP] Converting code to a function Hi eve

[PHP] Converting code to a function

2001-02-27 Thread Clayton Dukes
Hi everyone :-)   I need help, how can I convert the following code into a function so that I can just place it in a global include file and call it using viewdoc($docid); whenever necessary?   ---START--- if ($docid == "") {  echo "Fatal Error - DocID not supplied";