I need a little help with my new site... as a perfect newB:
I have made a calendar, as a simple list of events (date,event) pulled out of SQL database, using:
mysql_query("SELECT * FROM kalender ORDER by nr");
So far I have just made my list simple like in a guestbbok:
$NUMROWS = mysql_num_rows($QUERY);
if ($NUMROWS) {
$I = 0;
while ($I < $NUMROWS) {
$dato = mysql_result($QUERY,$I,"date");
$sted = mysql_result($QUERY,$I,"event");
..... etc ....
and then listing up using echo. Very simple, but effecient, since the list is attached to a "send in new events" - form.
Now heres the Question:
How do I link from the "event" to a new page with details about this event (and only this event!)?? I have tried using some old code getbykey, but since I'm new with the ID's and LINK-business, I cant get it to work.
In the detailed page, is of course just some more fields from the same DB-table, such as "description", "contact" etc.
Finally Id love to here from someone who knows how to output the above 2 fields from a DB ordered by date :rolleyes:
Appreciated...
Eilertsen