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> Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted April 11, 2008 Share Posted April 11, 2008 Eh? Whats the problem exactly? Quote Link to comment 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> ???? Quote Link to comment 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> Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.