Jump to content

select date problem


I-AM-OBODO

Recommended Posts

Hi all.

In my code I use MySQL curdate() and now() to insert the current date and time in my db. and to get the date and time output I used a calender script I found on internet. the calendar inputs date in the format 12/10/2020 and MySQL date and time format is different (which I believe that's why my script isnt working)

I did a select * from table_name where user is boy and date  between $start and $end

 

but all I'm getting is blank page. I think I need to conver my form date to something MySQL will understand before I can get an output but I don't know how?

 

how can I achive a result

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/265207-select-date-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.