Jump to content

Table help


Cyberspace

Recommended Posts

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

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

<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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.