I don't want it a mysql function...I need it a php function so I can tell the user that that particular product they purchased is expired (they will have more than one product purchased.)
I have a date comming from mysql yyyy-mm-dd I need to be able to distinguish if this date is over 1 year old.
The date is also in an array:
$mydate[$i] = yyyy-mm-dd;
I need a function that will return a true or false if each date in the array is a year old.
Thaks,
Mike
when I add a second WHERE I get an sql error msg
$sql = "SELECT * FROM login
WHERE (Email = '$email')
WHERE crsnum NOT IN (1,4,9,17,19)
ORDER BY ID DESC";
I have multiple items that I don't want selected in my select statement...I can get ONE to work here is a sample:
$sql = "SELECT * FROM login
WHERE (Email = '$email') HAVING Crsnum != 1 ORDER BY ID DESC";
This will not select any Crsnum that =1...
The problem I am having is I have multiple...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.