I have a couple of questions about my SELECT statement.
<?
$sql="SELECT class_date FROM huntersafety_dates WHERE class_date > $today";
$result=mysql_query($sql, $conn);
while($row=mysql_fetch_array($result, $conn)) {
$class_date=$row['class_date'];
$class_date1=strtotime($class_date);
$longdate=date('l, F, d, Y', $class_date1);
echo "<option value=\"{$class_date}\">{$longdate}</option>";
The select statement is not working because it is pulling all of the records instead of just the records where the data is greater than today.
Also, how does my code for changing the date format look? Can I streamline it at all?
Thanks for your help.