|
Posted by Oli Filth on 06/06/05 01:45
Lee David said the following on 05/06/2005 23:27:
> The error came in when the sql statement was executed. If the "x.inc" data
> was on the page there was no error, but if the include were there, the user
> name, password, connection id (localhost) and database name were not found.
>
> The general problem is I would like to insert stuff like the above rather
> than include the physical code in each of the pages that has sql code. The
> error was invalid sql connection and no password - the things that I tried
> to insert into the page with the include.
>
> Yes, you are right that is pure pseudo code. I guess what I'm looking for
> is pre-processor includes like we have on the mainframe.
>
There should be no problem with defining variables in an include() file.
Post the code you're using, see if we can spot anything untoward!
--
Oli
Navigation:
[Reply to this message]
|