Re: An annoying session problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hmpf, well I feel like a real tit now.
I tried all the posted suggestions, and still couldn't figure out why it
wasn't working. 
I went back to re-code the whole page from scratch, started off with include
'connection.php', then it hit me...i hadn't included the connection file in
the parent file to the include, so it wasn't (and couldn't) connect to the
database. I put the connection file into the parent file, and now its
working!

Sorry to have taken so much time up with such a silly little thing.

Regards, 
Alex.


On 19/6/06 18:52, "tedd" <tedd@xxxxxxxxxxxx> wrote:

> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux