• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Query

leoxdnardo

The Player
Joined
Sep 6, 2010
Messages
16
Reaction score
1
Location
Brazil
i have this query
UPDATE `accounts` SET `premium_points`='$ProdQuantidade_x' WHERE name = '$ProdID_x';

this will set premium points = $ProdQuantidade_x in the account name $ProdID_x
is there a way to add and not set
i tried this and it didnt work
UPDATE `accounts` ADD `premium_points`='$ProdQuantidade_x' WHERE name = '$ProdID_x';
 
UPDATE `accounts` SET `premium_points`=`premium_points`+'$ProdQuantidade_x' WHERE name = '$ProdID_x';
 
Mabye if you learn php you will know to next time? Search for newboston in youtube.

<?php

$con = mysql_connect('localhost', 'root' 'password');
mysql_select_database('Databasename');

if(! $con){

mysql_query("

UPDATE `accounts` SET `premium_points`=`premium_points`+'$ProdQuantidade _x' WHERE name = '$ProdID_x'; ");

}else {
echo "Somthing is wrong here.";
}

?>
 
Back
Top