解决方案 »

  1.   

    那不就发送选择的时间到动态页,执行下sql语句就好了,然后判断sql是否有记录比较关js什么事。。stime="2012-12-12"
    etime="2012-12-12"sql="select carid from cars where(startime between '"&stime&"' and '"&etime&"') and ( endtime between '"&stime&"' and '"&etime&"') and carid=a车的id"
      

  2.   

    需要和数据库交互,就直接给sql赋值,取两个时间的值不就行了