Hi there,
I'm working on a gig listings page which i've at the minute got working with the following code...
$result = mysql_query("SELECT * FROM Guests WHERE Date>=CURDATE() ORDER BY Date LIMIT 6");
while($row = mysql_fetch_array($result))
{
echo"<table width='720' border='0' align='center'><tr>";
echo '<td><span class="first"><strong>'.date('jS F Y', strtotime($row['Date'])).'</strong></td>';
echo"<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>";
echo"<td width='280'><span class='first'>" . $row['Name'] . "</span></td>";
echo"<td width='5'> </td>";
echo"<td width='54'>" . $row['Time'] . "</td>";
echo"<td width='5'> </td>";
echo"<td width='337'>£" . $row['CostAdv'] . " adv / £" . $row['CostDoor'] . " door</td>";
echo"<td width='139'>More Details</td>";
echo"</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td height='30' colspan='6'><center>_____________________________________________________________________________________</center></td>
</tr>
</table>";
}
Where it says "More Details" i want this to be a URL to another page which shows more information about that specific artist. Each row in the database contains the information about the artist, including an incrementing ID number. I presumed that i could use this ID number to load the information into the other page.
First off, i have no idea how to put a <a href> link into the echo code, most of my attempts have come up with errors talking about " and 's being in the wrong place.
Secondly, anybody know about how i would go about calling the URL to show the added information?
I know i sound a bit vague but hopefully someone will be able to help.
Thanks,
Dan