Re: An annoying session problem

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

 



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']"'

or as I like to do.

$user_id = $_SESSION['user_id'];

WHERE user_id = '$user_id'

hth's & that I'm right.

tedd
-- 
------------------------------------------------------------------------------------
http://sperling.com  http://ancientstones.com  http://earthstones.com

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