Well experiencing some can resolve the problem that you can donate more than you have (I should clarify that I am not a programmer, not absolutely nothing about programming and what I did was rather a bit of "deduction"). Only a conditional solves that problem, but not that of the negative numbers.
Search:
And add above
Code:
if($amount < $money){
Then Search:
Code:
else
{
$article_title = $accden;
$article_content = $reqlogin;
}
And replace with:
Code:
else
{
$article_title = $accden;
$article_content = "No puedes donar mas de lo que tienes";
}
}