Jump to content

[SOLVED] Can't figure out this error...


DBookatay

Recommended Posts

I keep getting an error "Parse error: syntax error, unexpected ';' in /home/.phillipina/dbookatay/carcityofdanbury.com/inventory_search.php on line 415" and can't figure it out.

 

$purDate = $row['pur_dte1'].'-'.$row['pur_dte2'].'-'.$row['pur_dte3'];

if ($purDate <= date('m-d-y', strtotime('-10 days')) {
   $flagClass = "New"; 
   $flagText = "New Arrival";
}

 

Basically, if $purDate is less than or equal to todays date, do this...

 

Link to comment
https://forums.phpfreaks.com/topic/88118-solved-cant-figure-out-this-error/
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.