hey @all
hilfe..... die vorhandenen points werden überschrieben nur die neuen werden angezeigt
...i-wo überseh ich was ..für nen tip oder hilfe wär ich dankbar
hilfe..... die vorhandenen points werden überschrieben nur die neuen werden angezeigt

PHP-Code:
$selectPoints = mssql_query(
"SELECT cash FROM Account..tCash WHERE userNo = "
. mssql_escape_string($_POST['custom'])
. ";"
);
$paymentAmount = mssql_escape_string($_POST['mc_gross']);
$addPoints = $paymentAmount * 1000;
if (mssql_num_rows($selectPoints) == 1) {
$newCash = $selectPoints + $addPoints;
$insertPointsSQL = "UPDATE Account..tCash SET cash = " . $newCash
. " WHERE userNo = " . mssql_escape_string($_POST['custom']);
$insertPoints = mssql_query($insertPointsSQL);
if ($insertPoints) {
// ...
}
// ...
}
Kommentar