buenas tengo algo que me tiene bastante trancado... yo tengo un listado el cual me devuelve una lista de ciudades, el tema esta en que yo quiero agregar un boton solo al ultimo registro del listado... dejo mi codigo por si alguien me quiere dar una mano gracias
Código PHP:
Ver original<?php
include "config.php";
$nombrecir=$_SESSION['namecirc'];
$query = "SELECT city, arrival,departure FROM `sites` WHERE nombreCirc='".$nombrecir."'";
$numero = 0;
?>
<style type="text/css">
.listado td{
width:25%;
font-family:verdana;
}
</style>
<table class="listado">
<?php
?>
<tr>
<td>
<b><?php echo $row["city"]?></b><br/>
Arrival:<?php echo $row["arrival"]?><br/>
Departure:<?php echo $row["departure"]?><br/>
<?php
{
?>
<tr>
<td>
<a title="TripMinded - Add Transport" id="transportelink" onclick="this.style.display='none'" href="addtransport.php" class="ajax cboxElement">
<input type="button" value="Add Transport" onclick="this.style.display='none'" id="algo" /></a>
<br/>
<b><?php echo $row2["city"]?></b><br/>
Arrival:<?php echo $row2["arrival"]?><br/>
Departure:<?php echo $row2["departure"]?><br/>
</td>
</tr>
<?php
$numero++;
}
?>
</td>
</tr>
</table>
<?php
?>