$sql = "INSERT INTO satylgandar (name, kuda, price, summa, (price*summa) as osumma, data) VALUES ('$args1', '$args[2]', '$args[3]', '$args[4]', '$args[5]', '$args[6]')"; $connection->query($sql);
1 ответ
$args[5]=$args[3]*$args[4];
$sql = "INSERT INTO satylgandar (name, kuda, price, summa, osumma, data) VALUES ('$args[1]', '$args[2]', '$args[3]', '$args[4]', '$args[5]', '$args[6]')";
$connection->query($sql);
Не?