Reply to Re: include code on server

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация