51ff3226 |
1 | <?php |
2 | error_reporting(1); |
3 | session_start(); |
4 | require('../config/config.inc'); |
e909f81b |
5 | require(INCLUDE_DIR.'database.inc'); |
51ff3226 |
6 | $db=new CLASS_DATABASE(); |
7 | $user_id = $_GET['user_id']; |
8 | |
9 | $set=$db->query(sprintf('select moods from users where user_id = %d limit 1',$user_id)); |
10 | $set->next(); |
11 | $moods = $set->getString('moods'); |
12 | echo "session_user_id:: ".$_SESSION['user_id']."<br>"; |
13 | printf('moods:: %s session:: %d , %s , %s',$moods,$_SESSION['mood'],$_SESSION['mood_name'],$_SESSION['mood_text']); |
e909f81b |
14 | ?> |