hi,
I'm displaying on my form the records from a table.I would like to make a hyper-link for each of the record.I wonder, how can i do it.Each record i display from the table will have a different link to be opened.
Ex:
I display from the table the following records:
first record
second record
third record
......and so on----
Now, when i click first record, a page is displayed.
lly, when i click the second record, a different page is opened.
How can i accomplish this one??
Here is my code:
<?php
//DB connection
$select_query = "SELECT PARENTTOPIC_NAME FROM topic ORDER BY TOPIC_ID DESC LIMIT 4";
$result = mysql_query($select_query);
$numrows = mysql_num_rows($result);
while($row = mysql_fetch_array($result)){
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>humor</title>
</head>
<body>
<table border="1" width="100%">
<tr>
<td width="100%">
<?
echo "<br>\n", " $row[PARENTTOPIC_NAME]";
?>
</td>
</tr>
</table>
<?
}
?>
</body>
</html>
Thanks in advance for your help