You are only running the second query. A query is executed using this command:
so in yours, you are only executing the second one:
$query ="UPDATE founds SET balance = $income WHERE id =$id";
because you overwrite the first one with the second one.
CodingForums Supreme Overlord
All Hail Spookster