This is my code. I'm curious as to how to echo an statement ONLY in the event that the query worked. I've tried adding it at the bottom but it says it no matter what.:devious:if ($userdata['user_LastManagement'] == $now){
echo "You've already managed your turns today!";
}else{
$result = dbquery("UPDATE ".$db_prefix."users SET user_LastManagement= '$now', user_AvailableTurns = '$total' WHERE user_id='".$userdata['user_id']."'") or die(mysql_error());
};