<?php
if (!is_numeric($_POST['deposit']) || $_POST['deposit'] <100)
{
echo "Please enter at least $100 for the deposit.";
echo "<br><br>";
}
If ($userdata['strength'] <2 || $userdata['money'] <0 ){
echo "You don't qualify! You need at least 2 strength and have positive money.";
echo "<br><br>";
}else{
$up="UPDATE fusion_users set money=money-".$_POST['deposit']." where user_id = '".$userdata['user_id']."'";
mysql_query($up) or die("error");
$up="Update fusion_users set strength=strength-2 where user_id = '".$userdata['user_id']."'";
mysql_query($up) or die("error");
$up="UPDATE bank set account_money=account_money+".$_POST['deposit']." where founder_username = '".$userdata['user_id']."'";
mysql_query($up) or die("error");
echo "Congrats! You've just deposited!";
}
?>
$var = mysql_query("UPDATE PREFIX_table SET money = 1000 WHERE user_id = '".$userdata['user_id']."'");
$var = mysql_query("UPDATE PREFIX_bank SET account_money = account_money+".$_POST['deposit']." WHERE user_id = '".$userdata['user_id']."'");
Quote
Unknown98 wrote:
Still isn't updating.Code Download source$var = mysql_query("UPDATE PREFIX_bank SET account_money = account_money+".$_POST['deposit']." WHERE user_id = '".$userdata['user_id']."'");
$var = mysql_query("UPDATE fusion_bank SET account_money = account_money+".$_POST['deposit']." WHERE user_id = '".$userdata['user_id']."'");
Quote
Unknown98 wrote:
Still doesn't workCode Download source
$var = mysql_query("UPDATE fusion_bank SET account_money = account_money+".$_POST['deposit']." WHERE user_id = '".$userdata['user_id']."'");
<?php
if (!is_numeric($_POST['deposit']) || $_POST['deposit'] <100)
{
echo "Please enter at least $100 for the deposit.";
echo "<br><br>";
}
If ($userdata['strength'] <2 || $userdata['money'] <0 ){
echo "You don't qualify! You need at least 2 strength and have positive money.";
echo "<br><br>";
}else{
$var = mysql_query("UPDATE fusion_bank SET account_money = account_money+".$_POST['deposit']." WHERE user_id = '".$userdata['user_id']."'");
$var = mysql_query("UPDATE fusion_users SET money = money-".$_POST['deposit']." WHERE user_id = '".$userdata['user_id']."'");
$var = mysql_query("UPDATE fusion_users SET strength = strength-2 WHERE user_id = '".$userdata['user_id']."'");
echo "Congrats! You've just deposited!";
}
?>
Category Forum
Official Core Support - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions