开发者

How to pass value from datepicker to database?

开发者 https://www.devze.com 2023-01-31 14:53 出处:网络
by using form and post method in my program. It seems like my values of calendar are not a开发者_Python百科ble to insert into my database. I\'m using jquery\'s datepicker and php to code. Please advic

by using form and post method in my program. It seems like my values of calendar are not a开发者_Python百科ble to insert into my database. I'm using jquery's datepicker and php to code. Please advice. Thanks


chances are your database is structured with a date format or datetime format. This is fine, but you will have to change the format of the date in the jquery UI after it is posted. Therefore if you have it as 12/19/2010 it would have to be changed to 2010-12-19 for the database to accept it. This is just a random guess since I don't know much more from your question.

0

精彩评论

暂无评论...
验证码 换一张
取 消