Re: [PHP] where to put a function

2008-04-15 Thread Zoltán Németh
Rick Pasotto írta: Probably been answered a thousand times; if so, just tell me where to look. I have a function that includes a specific sql query that is used on only one page on the site. Should that function be coded (1) in the page itself, (2) in a separate file that only that page includes

Re: [PHP] where to put a function

2008-04-14 Thread Eric Butera
On Mon, Apr 14, 2008 at 11:34 AM, Rick Pasotto <[EMAIL PROTECTED]> wrote: > I have a function that includes a specific sql query that is used on > only one page on the site. Should that function be coded (1) in the page > itself, (2) in a separate file that only that page includes, or (3) in a >

Re: [PHP] where to put a function

2008-04-14 Thread Daniel Brown
On Mon, Apr 14, 2008 at 11:34 AM, Rick Pasotto <[EMAIL PROTECTED]> wrote: > Probably been answered a thousand times; if so, just tell me where to > look. The archives are always your best friend when searching for specific data. The two best are: http://www.marc.info/ http://

Re: [PHP] where to put a function

2008-04-14 Thread Nathan Nobbe
On Mon, Apr 14, 2008 at 9:34 AM, Rick Pasotto <[EMAIL PROTECTED]> wrote: > Probably been answered a thousand times; if so, just tell me where to > look. > > I have a function that includes a specific sql query that is used on > only one page on the site. Should that function be coded (1) in the pa

[PHP] where to put a function

2008-04-14 Thread Rick Pasotto
Probably been answered a thousand times; if so, just tell me where to look. I have a function that includes a specific sql query that is used on only one page on the site. Should that function be coded (1) in the page itself, (2) in a separate file that only that page includes, or (3) in a master