[英]php input type text not giving new value
Ok here is my case 好的,这是我的情况
i have and its value is get from mysql *let's say its value is 500.91 我有,它的值是从mysql获取的*假设它的值是500.91
i changed its value from phpmyadmin into 500.9 我将其值从phpmyadmin更改为500.9
at phpmyadmin the value succesfully changed into 500.9 在phpmyadmin处,该值成功更改为500.9
but at my google chrome the value is still 500.91, i have press f5 for refresh and it's still 500.91 但在我的谷歌浏览器中,该值仍为500.91,我按f5键进行刷新,仍为500.91
there are 2 option to have the value changed 1. clear all of cache, history and cookies 2. wait a couple of days and it will changed 有2个选项可以更改值1.清除所有缓存,历史记录和cookie 2.等待几天,它将更改
my question is 我的问题是
How to automatically change the value without clear all history manually or wait for couple days? 如何自动更改值而无需手动清除所有历史记录或等待几天? please help me
请帮我
*database changed but php display not changed *数据库已更改,但php显示未更改
Edit (by Dinistro): 编辑(由Dinistro撰写):
here is the code which was added in the comments: 这是在注释中添加的代码:
<?php
$query = mysql_query("SELECT * FROM surat_jalan WHERE tanggal >= '$tanggal1'
AND tanggal <= '$tanggal2 23:59' ORDER BY tanggal ASC");
while($row = mysql_fetch_array($query)){
?>
<td>
<input type="text" name="volume" value="<?php echo($row['volume']); ?>" />
</td>
<?php
}
?>
<?php
$display = <<<EOF_;
<table>
<tr>
<td> </td>
</tr>
EOF_;
$query = mysql_query("SELECT * FROM surat_jalan WHERE tanggal >= '$tanggal1'
AND tanggal <= '$tanggal2 23:59' ORDER BY tanggal ASC");
while($row = mysql_fetch_array($query)){
$display .= <<<EOF_;
<tr>
<td>
<input type="text" name="volume" value="$row['volume']" />
</td>
</tr>
EOF_;
}
$display .= <<<EOF_;
</table>
EOF_;
echo"$display";
?>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.