Home  >  Article  >  Backend Development  >  php-datepicker时间选择器,sql参数查询

php-datepicker时间选择器,sql参数查询

WBOY
WBOYOriginal
2016-06-02 11:29:501501browse

phpdatepickersqljquery

my97datepicker控件(其他控件也可),怎样将选中的开始和结束时间作为变量传递到服务器,进行 sql查询 (注:服务器端脚本php,数据库sqlsrv, jquery, json),然后将获取到的信息展示在页面中,求示例 

sql语句为
sql="select * from test where between Time '$startTime' and '$endTime' ORDER BY Time DESC"

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn