I have a script that has a drop-down for how long the listing will be published. Right now, it uses the following to decide between 2 weeks, 1 month, 3 months, or 6 months:
[code=php]
$cadate = time();
if ($gueltig == ’14’) $caend = $cadate + 1209600;
elseif ($gueltig == ’30’) $caend = $cadate + 2592000;
elseif ($gueltig == ’90’) $caend = $cadate + 7776000;
elseif ($gueltig == ‘182’) $caend = $cadate + 15724800;
else $caend = $cadate + 1209600;
$deltime = strftime(“”._CLADS_STRF.””,$caend);
I know this is a stab in the dark, and without seeing the rest of the code, is there another elseif I can add so that the listing will be there permanently?