Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

compare php date with mysql date

$today = date("Y-m-d");

$sql_query = "SELECT * FROM orders WHERE expireDate <=".strtotime($today);
 
PREVIOUS NEXT
Tagged: #compare #php #date #mysql #date
ADD COMMENT
Topic
Name
1+6 =