Thread: php sessions
View Single Post
Old 10-10-2007, 02:59 PM   #25 (permalink)
Rating: 0% (0)
Almeria Property Place
Advancing Real Estate agent
 
Almeria Property Place's Avatar
 
Join Date: Jun 2007
Posts: 97
Send a message via Yahoo to Almeria Property Place Send a message via Skype™ to Almeria Property Place
Default

<?php session_start();

if (strpos($_SESSION['portfolio'], ',' . $_GET['recordID']) !== false) {
$_SESSION['portfolio'] .= ',' .$_GET['recordID'];
}
?>
or like this
<?php session_start();
$_SESSION['portfolio'] .= ',' .$_GET['recordID'];
if (strpos($_SESSION['portfolio'], ',' . $_GET['recordID']) !== false) {
$_SESSION['portfolio'] .= ',' .$_GET['recordID'];
}
?>

cant seem to get it to work either way
__________________
Jeremy Lister
Almeria Property Place
www.almeriapropertyplace.com
www.albaniapropertyplace.com
jlister@almeriapropertyplace.com
00 34 950 333 465
Almeria Property Place is offline   Reply With Quote
 

Spanish Real Estate Forum - Members newest adverts
CH5 New Villa Costa Azahar
A Castle in Spain
Costa Azahar Village House for sale
CHL Investment Opportunity Coasta Azahar
Cervera del Maestre Property