Linas Nenartavičius
Member
- Nov 5, 2011
- 106
- 8
He's wanting to make it not store in the session. So please disread this dumb comment, no offense but I am guessing you don't know how this actually works.thats normal, it will update when u clear your cache or log out of your acc and back in.
<?php
if($_SESSION['user']['id']){
$getLook = mysql_fetch_assoc(mysql_query("SELECT `look` FROM `users` WHERE `id` = '".$_SESSION['user']['id']."' LIMIT 1"));
}else{
header('Location: yourURL/index');
exit;
}
?>
<?php echo $getLook['look']; ?>