Re: An annoying session problem

From: Date: Mon, 19 Jun 2006 17:52:52 +0000
Subject: Re: An annoying session problem
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-238306@lists.php.net to get a copy of this message
At 12:27 AM +0700 6/20/06, Gmail nya Suprie wrote: >tedd wrote: >>Alex Major wrote: >> >>>And I'm still not getting the output correctly. >>>I don't think that the SELECT query is working properly, is there problem >>>with how I've put: >>> WHERE user_id = '".$_SESSION['user_id']."' >>> >> >>Maybe I'm all wet here, but what's the the periods? >> >>Why isn't it: >> >>WHERE user_id = '"$_SESSION['user_id']"' >> > >I don't think the script will work... the period is used to combine two variables or string >example : >$foo = "hai "; >$bar = "there "; >so $foo.$bar will produce "hai there" Yes, I understand concatenation operators -- but I don't think they will work in this setting. Just try my suggestion and see if it will work. tedd -- ------------------------------------------------------------------------------------ http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#238306) next »