Most of my code writing skill comes from folowing examples or tutorials. I am trying to learn more as I go but like most people with little knowledge, simple things take hours of work to get right
I am working on a project to present an events list in a table. I have the proper code to pull the items out of the database for each line. The last item is a URL. I can get the URL into my table but what I really want is the word “Results” which links to the URL in a new page when clicked.
Here is the section of code in question
[code]usort ( $contest, ‘order’ );
$savtitle = null;
$savdis = $contest[0][‘district’];
$j = $j+1;
for($i = 0; $i < $j; $i++)
{
if ($savtitle == $contest[$i][‘name’]) continue;
if ($savdis != $contest[$i][‘district’]) echo "
".$nbsp."
".$nbsp."
".$nbsp."
".$nbsp."
".$nbsp."
".$contest[$i]['date']."
".$contest[$i]['state']."
".$contest[$i]['district']."
".$contest[$i]['city']."
".$contest[$i]['name']."
".$contest[$i]['url']."
echo “
$savtitle = $contest[$i][‘name’];
$savdis = $contest[$i][‘district’];
}
?>
[/code]
This is the line that I want to modify
echo “
”.$contest[$i][‘url’]."
the url is the address that I am pulling forom the DB that I want to link to.
For an example of what the page currently looks like.
http://nsrca.us/contest-results/2009/d1.html
Thank you for your time,
Stuart