use*_*298 6 php mysql formatting numbers
我有一个用javascript格式化的表单,这使得数字看起来像:
10.000或2.300
<form>
<input type="text" name="price_1" value="2.300">
</form>
Run Code Online (Sandbox Code Playgroud)
但我想将它们存储在没有点的mysql中.如何删除它们?
mysql_query("INSERT INTO prices price_a='price_1' WHERE id ='price_id'");
Run Code Online (Sandbox Code Playgroud)
我看到money_format和number_format,但它只是格式化数字不删除任何东西.