Re: [PHP] mysql and session vars...

2004-07-10 Thread Jason Wong
On Sunday 11 July 2004 07:59, bruce wrote: > not sure what you mean by hijacking... FYI: You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client gener

RE: [PHP] mysql and session vars...

2004-07-10 Thread bruce
e the session var in another page ideas/comments welcome.. thanks.. -bruce -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Saturday, July 10, 2004 4:42 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] mysql and session vars... Please d

Re: [PHP] mysql and session vars...

2004-07-10 Thread Marek Kilimajer
Please do not hijack threads. bruce wrote: hi... if i create a site that hits a back mysql db... i don't want to do a mysql_connect for every page that has to access the db. so the question is where should the mysql_connect occur. also, if i were to do it once when the app starts, is the connection

RE: [PHP] mysql and session vars...

2004-07-10 Thread bruce
update... as a short test... i created a resource --> $link = mysql_connect(foo.) and used the $link to process a query against my mysql db... i then attempted to create a session var consisting of the $link value... $_SESSION['db'] = $link, and verified that it actually contained the res