Hi All,
I am rtying to make a variable have a url link attached to it. the part of the code I ned to have the link is:
print ("<td class=\"bodytext\">VIEW</td>");
but how do I code the VEW to link to another page like:
<td class="bodytext"><a href="../sales/index.php" target="_self">VIEW</a></td>
I hope this makes sense.
$count =0;
while ($row_sort_date = mysql_fetch_assoc($sort_date)) {
$variable1=$row_sort_date['member_id'];
$variable2=$row_sort_date['f_owners_name'];
$variable3=$row_sort_date['f_owners_contact'];
$variable4=$row_sort_date['f_person'];
$variable5=$row_sort_date['f_date'];
$variable6=$row_sort_date['f_location'];
if(++$count % 2)
print("<tr class=\"even\">");
else
print("<tr class=\"odd\">");
print ("<td width=\"100\">$variable1</td>");
print ("<td width=\"135\">$variable2</td>");
print ("<td width=\"102\">$variable3</td>");
print ("<td width=\"131\">$variable4</td>");
print ("<td width=\"91\">$variable5</td>");
print ("<td>$variable6</td>");
print ("<td class=\"bodytext\">VIEW</td>");
print ("<td class=\"bodytext\">FILTER</td>");
</tr>
while ($row_sort_date = mysql_fetch_assoc($sort_date));