You are here: working with session variables « PHP Programming Language « IT news, forums, messages
working with session variables

Posted by Connor T on 01/08/06 21:40

Hi,

I have this code:

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

Both of the variables on the left are session variables.

So this now has to become:

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

if register_globals are turned off.

however that doesnt compile, so how should it be done properly?

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

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