
18/02/2010, 13:05
|
| | Fecha de Ingreso: enero-2009
Mensajes: 197
Antigüedad: 16 años, 1 mes Puntos: 0 | |
Respuesta: Ayuda Porque si dejo el codigo de esta manera siempre me va a mostrar el mismo registro:
echo "<tr><td><center><a href='acta.php?id_ofer=".$row2['id_ofer']."' title='Ver Oferta en detalle'><img src='Clipboard.JPG' with='25' height='29' border='0' alt='Acta'/></center></a>";
echo "<td>"; echo $row2["oferta"];
echo "</td>";
$dep="SELECT municipios.departamento,municipios.municipio FROM oferta, municipios WHERE oferta.departamento = municipios.id_dpto and oferta.municipio = municipios.id_muni";
$reg = mysql_query($dep) or die ($error_sel);
//$a=1;
$row1 = mysql_fetch_array($reg);
echo "<td>"; echo $row1["departamento"];
echo "</td>";
echo "<td>"; echo $row1["municipio"];
echo "</td>";
//$a++;
echo "<td>"; echo $row2["fec_pub"];
echo "</td>";
echo "<td>"; echo $row2["fec_ven"];
echo "</td>";
echo "<td>"; echo $row2["estado"];
echo "</td>";
echo "<td>"; echo $row2['cargo'];
echo"</td></tr>"; |