td url issue
Posted: Thu Apr 08, 2010 7:07 pm
Ok so I am a complete noob to PHP and am trying to build my website from the ground up as I learn. I have a database in place which I am calling some data from to be displayed within a table.
Everything is working fine except i wish to have the entire entry link to its respecive page so from what little I know I think I can achieve this with
I am just having some trouble with the syntax though and keep getting errors back.
Thank you in advance to anyone that can help me with this.
Bob
Code: Select all
echo "<table width='748px' border='1'>";
{
echo "<tr>";
echo "<td id='desc' height='25px' width='600px'>" . $row['SDesc'] . "</td>";
echo "<td id='goal' align='center' width='50px'> €" . $row['Goal'] . "</td>";
echo "<td id='bid' align='center' width='50px'> €" . $row['Bid'] . "</td>";
echo "<td align='center' width='40px'> <img src='images/bid.jpg' width='40' height='22' align='right' alt='Bid'/> </td>";
echo "</tr>";
}
echo "</table>";Code: Select all
echo "<tr onclick=\”document.location.href='index.php?post_id=" . $row[Post_Id'] .";\'>";Thank you in advance to anyone that can help me with this.
Bob