View Single Post
Old 09-12-2008, 04:20 PM   PM User | #4
trixx
New Coder

 
Join Date: Sep 2008
Posts: 94
Thanks: 4
Thanked 0 Times in 0 Posts
trixx is an unknown quantity at this point
this is not working for me as the code i need is for me to use the session information to display user info

e.g.

PHP Code:
);
}
$fetch=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$username'")); 
This is the code i will use to fetch the data from that specified username

For the moment i am using cookies so my $username bit is this
PHP Code:
]))
$username $_COOKIE['ID_my_site']; 
i want to get rid of cookies and use sessions but still be able to do this

PHP Code:
$username get_info_from_session

echo $fetch->username 
something along these lines

Last edited by trixx; 09-12-2008 at 04:45 PM..
trixx is offline   Reply With Quote