To mam jeszcze jeden problem
W bazie danych mam coś takiego:
msg $username test
a sktypt wygląda następująco
$code = $_POST['code'];
$type = $_POST['type'];
$id = $_POST['id'];
$username = $_POST['username'];
if ($money >= $price)
{
$newWallet = $money - $price;
mysql_query("INSERT INTO `logs` SET `date`='$data', `ip`='$TheIp', `username`='".$_SESSION['username']."', `action`='buyWithWallet', `action_what`='$id_safe', `action_details`='$username_safe', `status`='ok', `correct`='$price', `code`=''"); mysql_query("UPDATE `authme` SET `wallet`='$newWallet' WHERE username='".$_SESSION['username']."'"); header("location: ../shop.php?view=buy&id=".$_POST['id']."&feedback=ok");
foreach (explode('<br>', $komenda ) as $value) {
$rcon->send_command($value);
}
}
Problem jest taki że zamiast podmienić $username na to co jest w $_POST['username'] to wysyła to serwera po prostu "msg $username test" a nie jak bym chciał "msg nickPodanyWPost test"
Czy ktoś ma pomysł jak to zrobić by działało?