Cyberspace Posted April 11, 2008 Share Posted April 11, 2008 I am trying to add a link in a table that goes to another page: I want to add the href in the line below: <td class="Join"><?php echo "<a href='JoinWalk.php?WalkNo=$WalkNo'>Join Walk</a>"?></p></td> and add it to the following line instead: <td class="Body"><?php echo $account["WalkNo"]; ?></td> Link to comment https://forums.phpfreaks.com/topic/100692-table-help/ Share on other sites More sharing options...
GingerRobot Posted April 11, 2008 Share Posted April 11, 2008 Eh? Whats the problem exactly? Link to comment https://forums.phpfreaks.com/topic/100692-table-help/#findComment-514961 Share on other sites More sharing options...
rhodesa Posted April 11, 2008 Share Posted April 11, 2008 <td class="Body"><?php echo "<a href='JoinWalk.php?WalkNo=$WalkNo'>Join Walk</a>"?></td> ???? Link to comment https://forums.phpfreaks.com/topic/100692-table-help/#findComment-514962 Share on other sites More sharing options...
Cyberspace Posted April 11, 2008 Author Share Posted April 11, 2008 Eh? Whats the problem exactly? I have the link working, but i want the link included within the "WalkNo" column in the table, just not sure how to add it in: <td class="Body"><?php echo $account["WalkNo"]; ?></td> <td class="Body"><?php echo $account["Venue"]; ?></td> <td class="Body"><?php echo $account["WalkDate"]; ?></td> <td class="Body"><?php echo $account["Leader"]; ?></td> <td class="Join"><?php echo "<a href='JoinWalk.php?WalkNo=$WalkNo'>Join Walk</a>"?></p></td> for example: <td class="Body"><?php echo $account["WalkNo"]; "<a href='JoinWalk.php?WalkNo=$WalkNo'>Join Walk</a>" ?></td> Link to comment https://forums.phpfreaks.com/topic/100692-table-help/#findComment-514973 Share on other sites More sharing options...
GingerRobot Posted April 11, 2008 Share Posted April 11, 2008 <td class="Body"> <?php echo $account["WalkNo"]; echo ' <a href="JoinWalk.php?WalkNo='.$account['WalkNo'].'">Join Walk</a>'; ?></td> Is that what you wanted? Link to comment https://forums.phpfreaks.com/topic/100692-table-help/#findComment-514986 Share on other sites More sharing options...
Cyberspace Posted April 11, 2008 Author Share Posted April 11, 2008 <td class="Body"> <?php echo $account["WalkNo"]; echo ' <a href="JoinWalk.php?WalkNo='.$account['WalkNo'].'">Join Walk</a>'; ?></td> Is that what you wanted? I dont need the "Join walk" in, i just want the "WalkNo" that is displayed on the table as the link, sorry for the confusion Link to comment https://forums.phpfreaks.com/topic/100692-table-help/#findComment-514992 Share on other sites More sharing options...
GingerRobot Posted April 11, 2008 Share Posted April 11, 2008 How about you try and modify your code? If you can't get it to work, show us what you've done, and we'll point you in the right direction. Link to comment https://forums.phpfreaks.com/topic/100692-table-help/#findComment-515021 Share on other sites More sharing options...
rhodesa Posted April 11, 2008 Share Posted April 11, 2008 <td class="Body"><?php echo ' <a href="JoinWalk.php?WalkNo='.$account['WalkNo'].'">'.$account["WalkNo"].'</a>'; ?></td> Link to comment https://forums.phpfreaks.com/topic/100692-table-help/#findComment-515030 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.