Hi,
Couldn't think of a short way of describing my problem, so apologies for the cryptic subject.
I have a table (eventdetails) storing names and details of event types, and specifying whether it is a "big event" (i.e. newsworthy).
I have a separate table (calendar) storing the dates and times of these events, and the type of event (this value is the ID column of the eventdetails table.
I wish to print out the details of the next big event in the calendar (the date/time info is stored as a UNIX tstamp in the column tstamp, in the table "calendar").
I have no idea where to begin with this query, I can think of a very inefficient method involving while loops, but I'm sure there is an elegant method using MySQL.
Any ideas?
Many thanks,
ucbones