Hi
I have a php script where user can insert news but I want to show it only from the date what he/she added in date
For example if he added 12-05-03 then on the site he must to show only the news from 12-05-03 on date 12-05-03when that date is actual and end date has to go after 2 months in archive
<form action="" name="editForm" onSubmit="return false;">
<tr>
<td valign="top" width="123">
<?
$datum = getToday();
$dag = substr($datum, 8, 2);
$month_num = substr($datum, 5, 2);
$year = substr($datum, 0, 4);
$month[1] = "Januari";
$month[2] = "Februari";
$month[3] = "Maart";
$month[4] = "April";
$month[5] = "Mei";
$month[6] = "Juni";
$month[7] = "Juli";
$month[8] = "Augustus";
$month[9] = "September";
$month[10] = "Oktober";
$month[11] = "November";
$month[12] = "December";
?>
<span >Start Date</span> </td>
<td valign="top" > <select name="add_datum_dag" size=1>
<? for ($count = 1; $count <=31; $count++) {
$selected = "";
if ($count == $dag) $selected = "selected"; ?>
<option <?=$selected?> value="<?=$count?>" >
<?=$count?>
</option>
<? } ?>
</select> <select name="add_datum_month" size=1>
<? for ($count = 1; $count <=12; $count++) {
$selected = "";
if ($count == $month_num) $selected = "selected"; ?>
<option value="<?=$count?>" <?=$selected?> >
<?=$month[$count]?>
</option>
<? } ?>
</select> <select name="add_datum_year" size=1>
<? for ($count = 2002; $count <=2008; $count++) {
$selected = "";
if ($count == $year) $selected = "selected"; ?>
<option value="<?=$count?>" <?=$selected?> >
<?=$count?>
</option>
<? } ?>
</select> </td>
</tr>
<tr>
<td valign="top" >End Date</td>
<td valign="top" >
<select name="eadd_datum_dag" size=1>
<? for ($count = 1; $count <=31; $count++) {
$selected = "";
if ($count == $dag) $selected = "selected"; ?>
<option <?=$selected?> value="<?=$count?>" >
<?=$count?>
</option>
<? } ?>
</select> <select name="eadd_datum_month" size=1>
<? for ($count = 1; $count <=12; $count++) {
$selected = "";
if ($count == $month_num) $selected = "selected"; ?>
<option value="<?=$count?>" <?=$selected?> >
<?=$month[$count]?>
</option>
<? } ?>
</select> <select name="eadd_datum_yera" size=1>
<? for ($count = 2002; $count <=2008; $count++) {
$selected = "";
if ($count == $year) $selected = "selected"; ?>
<option value="<?=$count?>" <?=$selected?> >
<?=$count?>
</option>
<? } ?>
</select></td>
</tr>
<tr>