Jump to content

Archived

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

avo

Select Date Statement.

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

Share this post


Link to post
Share on other sites
Hi Thanks

Very interesting page .full of sql examples

Cheers

Share this post


Link to post
Share on other sites

×

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.