Page 1 of 1

Easy Question

Posted: Thu May 27, 2004 3:46 pm
by SilverMist
How do I get the user's ID to appear? Like I know all about the

Code: Select all

<? echo $userid; ?>
stuff, but I need to call it before I can put that part in to show it. Help?

Posted: Thu May 27, 2004 4:03 pm
by feyd
uhhhh... we probably need more info.. the info could be in any one of these:

Code: Select all

echo '<pre>$_GET<br />'.var_dump($_GET, true).'$_POST<br />'.var_dump($_POST,true).'$_SESSION<br />'.var_dump($_SESSION,true)'</pre>'
it could also be in a cookie or something..

Posted: Thu May 27, 2004 4:05 pm
by ol4pr0
not sure what you mean or trying to do..

but..

Code: Select all

$userid = '0 or some id' ;

# now this would echo back the $userid
# or get the userid from a database and do the same
# it will give the same result... 

echo $userid;
if that is not what u wanted to know.. than either i read it wrong or you explained it poorly

Posted: Thu May 27, 2004 4:56 pm
by feyd
[off topic]is it just me, or do threads that start with off with "easy question" rarely are? :P

Posted: Thu May 27, 2004 5:20 pm
by Illusionist
They would eb easy, if the person knew what they were talking about half the time and could explain what they wanted.

Posted: Thu May 27, 2004 5:51 pm
by tim
Illusionist wrote:They would eb easy, if the person knew what they were talking about half the time and could explain what they wanted.
that could be framed and worshipped by the people who help others here...

hey, uhh, i need a script that calls a for a b value and the b values comes from the place down the street where u can buy milk for $1.50, you know what i'm talking about! HELP!

Posted: Thu May 27, 2004 8:50 pm
by Illusionist
haha, agreed tim!

Oh yeah! I can help!! hehe