----- start your code -----
<td width="50%"> <?php echo "$EventTitle";?></td>
<td width="50%"><a href="Event_Output.php?eventid=<?php echo "$eventid";?>><?php echo
"$EventDate";?></a></td>
------ end your code ------
hm. assuming that yer getting more than one row off your query, what i would do would be loop it (forgive my total lack of odbc knowledge here...)
----- start my code -----
for($i=0;$i<pg_numrows($id);$i++)
{
$this_listgin = pg_fetch_array($id, $i);
while(list($key, $val) = each($this_listing)
$$key = $val
print <<<HTML
<a href="Event_Output.php?eventid=$eventid"> $EventDate</a>
<table stuff here>
HTML;
}
------ end your code ------
i've used the postgresql calls here since my odbc knowledge is zero, but you get the idea.
if the query pulls x rows, we loop x times with $i. we pull row $i and then loop through each key/value pair in that row and for each pair dump the value into a variable with the name of the key. ie, if you have a column called "eventid" that has value of 12, after this loop you have a variable called $eventid with a value of 12. with that done, you can just cook up your link using the column names as variables.
i think that's what your asking for... if it isn't, please clarify.
-frymaster