本文介绍了重新选择日期,并要从数据库中的数据中删除.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



这是日历天.
如果我重新单击日期,我想从数据库中删除该日期信息.
我用这段代码尝试了一下,但是没有用.

Hi,

This is the calendar days.
If I re-click the day, I would like to delete that date information from the database.
I tried it with this code, but it didn''t work.

$days = $this->input->post('day');  // result 21,22

if($days!=""){
$sql="delete from blocks where trips_id='".$trip_id."'";
mysql_query($sql);
 }

推荐答案




这篇关于重新选择日期,并要从数据库中的数据中删除.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 12:29