Re: [PHP] External Files (take 2)

2004-09-20 Thread John Nichel
GH wrote: So i would not need to use correct... Also as to the other question I asked: WHat should I use in the other file? the complete connection code or just the values as variables? Yes, you need to enclose it in opening/closing php tags. It will include the file inline, just as if you wr

RE: [PHP] External Files (take 2)

2004-09-20 Thread Jesse Castro
[snip] So i would not need to use correct... Also as to the other question I asked: WHat should I use in the other file? the complete connection code or just the values as variables? [/snip] Something like this: Main file: includeFile.php Cheers, -jesse- -- PHP General Mailing List (htt

RE: [PHP] External Files (take 2)

2004-09-20 Thread Jay Blanchard
[snip] So i would not need to use correct... Also as to the other question I asked: WHat should I use in the other file? the complete connection code or just the values as variables? [/snip] Put the entire connection string and error checking for the connection in the 'other file'. -- PHP Gen

Re: [PHP] External Files (take 2)

2004-09-20 Thread GH
So i would not need to use correct... Also as to the other question I asked: WHat should I use in the other file? the complete connection code or just the values as variables? On Mon, 20 Sep 2004 13:23:20 -0700, Daniel Kushner <[EMAIL PROTECTED]> wrote: > Hi Gary, > > Look up http://php.net/

Re: [PHP] External Files (take 2)

2004-09-20 Thread John Nichel
GH wrote: Hi... Here is my question. Sorry if it is a basic answer... new to php I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to mysql. I was thinking of making an external file bu

Re: [PHP] External Files (take 2)

2004-09-20 Thread Marek Kilimajer
GH wrote: Hi... Sorry about the last post... did not realize i hit the wrong button Here is my question. Sorry if it is a basic answer... new to php I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to

Re: [PHP] External Files (take 2)

2004-09-20 Thread Daniel Kushner
Hi Gary, Look up http://php.net/include It's just like "copy and pasting" the code in the external file in the one your including it into. Best, Daniel Kushner __ Director of Education Zend Technologies Ltd. [EMAIL PROTECTED] http://www.zend.com ===

RE: [PHP] External Files (take 2)

2004-09-20 Thread Jay Blanchard
[snip] I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to mysql. [/snip] http://www.php.net/include -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

[PHP] External Files (take 2)

2004-09-20 Thread GH
Hi... Sorry about the last post... did not realize i hit the wrong button Here is my question. Sorry if it is a basic answer... new to php I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to mysql.