[WP]: PHP SQL - Query Date from Now up to 3 Month Onwards


As per title, here the code. Have a nice day!

<?php 
 
$rows = $wpdb->get_results( 
  "
  SELECT * FROM Table WHERE  
                anydate_col BETWEEN NOW() AND DATE_ADD( NOW() , INTERVAL +3 MONTH)
  "
 );
?>

Thanks.

Popular Posts

.

Sila Klik, Untuk  Menempah Web Profesional!
Facebook Page
Facebook Page
Back to Top