Tablas con PHP

angelx
05 de Febrero del 2006
TEngo el siguiente código para alinear text y un imagen en una tabla con una fila de cuatro celdas y otra de tres, creo que esta todo bien pero no reconoce la tabla y escribe como si no existiese.

while( $row=mysql_fetch_array($result) ) {
if( $row["opcion"] == "Venta" ) {
"<table align='center' border='1' cellpadding='2' width='100%'>";
"<tr>";
"<td width='25%'>";
echo "&nbsp;";
"</td>";
"<td width='35%'>";
echo "Fecha :";
echo ( $row["fechaa"]. "<br>" );
echo "Nombre :";
echo ucwords( $row["nombre"]. "<br>");
echo "Ciudad :";
echo ucwords( $row["ciudad"]."<br>" );
echo "Teléfono:";
echo ( $row["telefo"] . "<br>" );
echo "E-mail :";
$corr = $row["correo"];
echo ( "<a href='mailto:$corr'>" .$corr ."</a>");
"</td>";
"<td width='15%'>";
$foto = $row["imagen"];
echo ("<a href='/Fotos/$foto'>");
echo ("<p align='left'>"."<img border='1' src='/Fotos/$foto' width='100' heigth='100'>"."</a>"."</p>");
"</td>";
"<td width='25%'>";
echo "&nbsp;";
"</td>";
"</tr>";
"<tr>";
"<td width='25%'>";
echo "&nbsp;";
"</td>";
"<td width='50%' colspan='2'>";
echo "&nbsp;&nbsp;&nbsp;";
echo ("<p align='justify'>". $row["anunci"]."</p>");
echo ("<hr>");
echo ("<hr>");
"</td>";
"<td width='25%'>";
echo "&nbsp;";
"</td>";
"</tr>";
"</table>";
}