Re: Sessions ???

From: Date: Wed, 02 May 2001 13:24:15 +0000
Subject: Re: Sessions ???
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-9050@lists.php.net to get a copy of this message
Thanks Steve; I now have this in a session file in my tmp dir topicID|s:1:"8"; Now how do i get the link to read http://localhost/forums/view.php?topicID=8 i think its along the lines of http://localhost/forums/view.php3?PHPSESSIONID?topicID I am banging away, the 4 books i have on Php are useless when it comes to session and there usage. Thanks for the help Dave C "Steve Brett" <steve.brett@e-mis.co.uk> wrote in message news:4E6344D9E3797749A18AC8017B88181E05A1D8@sv-pdc.EMIS.LOCAL... > try > session_register("topidID"); > > without the $ > > Steve > > > > -----Original Message----- > > From: DC [mailto:dave_news@NOSPAM-davecarrera.com] > > Sent: 02 May 2001 13:54 > > To: php-db@lists.php.net > > Subject: [PHP-DB] Sessions ??? > > > > > > Hi All > > I have a ? about setting a session. > > > > I have a functions.inc file and at the top have put my > > session statment that > > looks like this. > > > > <? > > session_start(); > > session_register("$topidID"); > > ?> > > > > $topicID comes from my mysql db. > > > > What i am trying to do is set the $topicID of my message > > board so that when > > a sucessful post has been made the visitor can click on a > > link that show the > > right board by topicID. > > > > so the link will look like this... > > > > http://localhost/forums/view.php?topicID=3 > > > > I am banging away trying to make this work.... > > > > Any help in the meantime is as always appreciated > > > > Thank You In Advance > > > > dave C > > > > > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > > For additional commands, e-mail: php-db-help@lists.php.net > > To contact the list administrators, e-mail: > > php-list-admin@lists.php.net > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#9050) next »