0
如何保证小数?在Mysql中,我有type = Decimal value = 6,2。预先感谢您的帮助十进制保护php mysql
<li>
<label for="price" class="text">Price:</label>
<input name="price" type="text" id="price" tabindex="210"/>
</li>
$price = $_POST["price"];
或
$price = mysqli_real_escape_string($connection, $price);
请切换到[预处理语句(http://bobby-tables.com/php。 html)来防止[SQL注入](https://www.owasp.org/index.php/SQL_Injection)。 –