Help with [PHP] & [mySQL]
#1

How do i withdrawl an amount, or value, From somones mysql account? Not resetting it, But checking if they have the amount first (I can do that), Then taking the amount required.

PHP код:

if($row[4] >= 60)
{
         echo 
'Ok you have enough...';
         
//Do mysql stuff here...
         
die;
}
if(
$row[4] <= 59)
{
         echo 
'You dont have enough!';
         
//Then the back button or redirect.
         
die;

But how would i go about Just taking the amount out, Like in pawn GivePlayerMoney(playerid, -500);

?!!?
Reply


Messages In This Thread
Help with [PHP] & [mySQL] (FIXED, DELETE PLS) - by DiddyBop - 07.08.2010, 19:41
Re: Help with [PHP] & [mySQL] - by DiddyBop - 07.08.2010, 23:28
Re: Help with [PHP] & [mySQL] - by ScottCFR - 07.08.2010, 23:32
Re: Help with [PHP] & [mySQL] - by JaTochNietDan - 07.08.2010, 23:39
Re: Help with [PHP] & [mySQL] - by DiddyBop - 07.08.2010, 23:46
Re: Help with [PHP] & [mySQL] - by DiddyBop - 08.08.2010, 01:56

Forum Jump:


Users browsing this thread: 5 Guest(s)