hi ivan thank you for your reply it tried this : $requet = "SELECT COUNT(*) FROM radcheck WHERE AcctStopTime=0"; $login_users = $requet and $login_users = SELECT COUNT(*) FROM radcheck WHERE AcctStopTime=0; still 0 , what im doing wrong?