Reply to Re: how to make a database connection available to all pages?

Your name:

Reply:


Posted by Oli Filth on 06/26/05 20:57

ndsoumah@gmail.com said the following on 26/06/2005 18:23:
> hi all
>
> How can I make a database connection available to all the pages in my
> application?
> I tried doing it with session but it doesn't seem to work.
>

You cannot store resource variables in $_SESSION.

Just create a new connection on each page. You could put the connection
code in an include-file if you want.

--
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

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