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
[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
[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
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/
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
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
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
===
[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
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.
GH wrote:
Hi
I think I may know what's causing your problem, but just to be sure, can
you provide just a bit more information?
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
Hi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
11 matches
Mail list logo