Hola
tengo un problema con mostrar los datos..
Supuestamente tu ves solamente unos datos en una pag (
http://franco-asociados.com/casas.php)
Entonces cuando tu apretas + info te debe salir toda la info
la sentencia de info.php que te muestra las mas informacion es:
Código PHP:
$result = mysql_query ("select * from propiedades where codigo='$codigo'");
El codigo lo toma mediante un $_POST...
El codigo completo de info.php es:
Código PHP:
<?
//Conexion con la bd
mysql_connect("localhost","bd","pass");
//seleccion de la bd con la que vamos a trabajar
mysql_select_db("bd");
//Ejecucion de la sentencia sql
$result = mysql_query ("select * from propiedades where codigo='$codigo'");
if(mysql_num_rows($result)==0)
{
echo "Lo sentimos no se encontro lo solicitado";
}
else
{
?>
<?
//mostramos los registros
$row = mysql_fetch_array($result);
$codigo = $row["codigo"];
echo "<table width='588' height='19' border='0' cellpadding='0' cellspacing='0'>";
echo "<tr><td width='588' height='19' valign='top'><div align='right'><a href='javascript:history.back()'><<- Atrás</a></div></td></tr></table>";
echo "<table bgColor='#FFFFD2' align='center'>";
echo "<tr>";
echo "<td colspan='3'> <p align='center'> <font color='#000000' size='-1' face='Gill Sans MT'>".$row['titulo']."</font></p></td>";
echo "</tr>";
echo "<tr align='center'></tr><tr align='center'></tr><tr align='center'></tr>";
echo " <tr align='center'>";
echo " <td colspan='3'> <p align='center'> <font color='#666666' size='3' face='Gill Sans MT'>Código:".$row['codigo']."</font></p></td>";
echo " </tr>";
echo " <tr>";
echo " <td colspan='3' align='center'><p align='center'> <font color='#666666' size='3' face='Gill Sans MT'> Tipo de propiedad:" .$row['tipo']."</font></p></td>";
echo " </tr>";
echo " <tr>";
echo " <td colspan='3' align='center'><p align='center'> <font color='#666666' size='3' face='Gill Sans MT'> Operación:" .$row['operacion']."</font></p></td>";
echo " </tr>";
echo " <tr>";
echo " <td colspan='3' align='center'><p align='center'> <font color='#666666' size='3' face='Gill Sans MT'> Ubicación:" .$row['ubicacion']."</font></p></td>";
echo " </tr>";
echo "<tr align='center'></tr><tr align='center'></tr>";
echo " <tr align='center'>";
echo " <td colspan='3'> <p align='center'> <font color='#666666' size='3' face='Gill Sans MT'>Precio:" .$row['precio']."</p></td>";
echo "</tr>";
echo "<tr align='center'></tr><tr align='center'></tr><tr align='center'></tr>";
echo "<tr>";
echo "<td colspan='3'> <p align='center'> <font color='#666666' size='3' face='Gill Sans MT'>Descripcion:</p><p>".$row['descripcion']."</font></p></td></tr>";
echo "<tr>";
echo " <td colspan='3'> <p align='center'><font size='3' face='Gill Sans MT' color='#666666'><a href='fotos.php?codigo=$codigo'>VER FOTOS </a> | <a href='contacto_propiedades.php?codigo=$codigo'>CONTACTO</a> | <a href='javascript:window.print()'>IMPRIMIR</a></font></p></td>";
echo "</tr>";
echo "</table>";
}
?>
SALUDOS
GRACIAS