$q = mysql_query('SELECT `balance` FROM `users` WHERE `unic1` = "'.(int)$_SESSION['ID64'].'"');
echo $q;
Displays: Resource id #17п»ї . How to display the value?
$q = mysql_query('SELECT `balance` FROM `users` WHERE `unic1` = "'.(int)$_SESSION['ID64'].'"');
echo $q;
Displays: Resource id #17п»ї . How to display the value?
 
    
    You need to use mysql_fetch_assoc for example to get data.
You should also not use mysql_functions any more but mysqli or PDO
 
    
    Try with mysql_fetch_assoc like this
$q = mysql_query('SELECT `balance` FROM `users` WHERE `unic1` = '.(int)$_SESSION['ID64'].'"');
while ($row = mysql_fetch_assoc($q)) {
    echo $row["balance"];
}
