I just want to view one record from this query on a page. it's a listing of concerts coming up and the one i want to have viewing is the next show by the date. so what do i have to change in this while loop to view the next date. i already have a script that will delete the records once it gets past the date.
<?PHP
$result = mysql_query("SELECT who1, when1, where1, city, cover, ages, time, info, fullimage FROM events ORDER BY when1 asc", $link_id);
while($query_data = mysql_fetch_array($result)) {
$who = $query_data["who1"];
$when = $query_data["when1"];
$where = $query_data["where1"];
$city = $query_data["city"];
$cover = $query_data["cover"];
$ages = $query_data["ages"];
$time = $query_data["time"];
$info = $query_data["info"];
$fullimage = $query_data["fullimage"];
list($Year,$Month,$Day) = split('-',$when);
$stampeddate = mktime(12,0,0,$Month,$Day,$Year);
$date = date("F j Y", $stampeddate);
echo "<tr><td align=\"center\" class=\"home\" valign=\"middle\">\n";
if ($fullimage == NULL)
{
echo "";
} else {
echo "<a href=\"javascript:PopupPic('images/$fullimage')\"> <img src=\"images/$fullimage\" border=\"0\" height=\"75\" width=\"50\" ></a>\n";
}
echo "<br>$who<br>$date<br>$where<br>$city<br>$cover / $ages / $time<br>$info</td></tr> \n";
}
?>