Jump to content

Select Date Statement.


avo

Recommended Posts

hi all

Can you please help me out with this query

im would like to get a date from mysql db if the coloum date is <= todays date within 2 months  but its not working

[code]$sql="Select customer_name from office_1 WHERE date_com <= date_add('".date("Ymd")."', interval 2 month)";[/code]

all help appriciated
Link to comment
https://forums.phpfreaks.com/topic/13532-select-date-statement/
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.