$result = dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_name='".$userdata['user_name']."'"); if ($result) { echo "Yra."; } else { echo "Nera."; }