You are here: Setting value of session variables « PHP Programming Language « IT news, forums, messages
Setting value of session variables

Posted by Connor T on 01/08/06 20:26

Hi,

I used to have code like this:

$itemCode["$basketCount"] = $id ;

where itemCode and basketCount were both session variables.

Now it seems i have to use _SESSION if register globals are turned off.
So how should
this code look?

This doesnt compile:

$_SESSION['itemCode']["$_SESSION['basketCount']"]=$id;

:)

Thanks!
Dan

 

Navigation:

[Reply to this 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

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