basically it doesn't preselect the current status to show up in the box 1st why? I feel i doing this right whats the problem
thanks to anyone that helps
$eventid = $_GET['id']; $result = "SELECT * FROM events LEFT JOIN artists ON events.artist_id=artists.artist_id LEFT JOIN venues ON events.venue_id=venues.venue_id WHERE event_id = $eventid"; $result = mysql_query ( $result ); $row = mysql_fetch_assoc ( $result ); $current_status = $row['status']; // created a drop down box for status and pre select current status $status .= '<select name="status">'; $status .= '<option value="Available" '.(($row['status']==$current_status)?'selected="selected"':'').'>Available</option>'; $status .= '<option value="Sold Out" '.(($row['status']==$current_status)?'selected="selected"':'').'>Sold Out</option>'; $status .= '<option value="Cancelled" '.(($row['status']==$current_status)?'selected="selected"':'').'>Cancelled</option>'; $status .= '</select>'; echo "$status";
