Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/marc/domains/domain/public_html/editar.php on line 151
Código HTML:
$oFCKeditor = new FCKeditor('descripcion'); $oFCKeditor->BasePath = "fckeditor/"; $oFCKeditor->Width = "600" ; $oFCKeditor->Height = "500" ; $oFCKeditor->Value = $row['descripcion']; $oFCKeditor->Create() ;
Código PHP:
<?php
//recibimos la variable id enviada en el enlace por GET
$id=$_GET[id];
//hacemos las consultas
$result=mysql_query("select id,titulo,telefono,operacion,banos,habitaciones,ciudad,provincia,mtscuadrados,precioventa,
preciopesos,preciorenta,tipoinmueble,descripcion,fechaingreso,imagen,imagen1,imagen2 ,referencia from propiedades where id='$id'"
,$enlace);
//Una vez seleccionados los registros los mostramos para su edición
echo '<table height="320">';
include("fckeditor/fckeditor.php") ;
while($row=mysql_fetch_array($result)){
echo '<form action="edit.php" method="post"><input type="hidden" name="id" value="' .$row[id].'">
<tr bgcolor="#666666" height="24" >
<td width="176"><font color="#FFFFFF"><strong>TITULO</strong></font></td>
<td width="197"><font color="#FFFFFF"><strong>TELEFONO</strong></font></td>
<td width="235"><font color="#FFFFFF"><strong>OPERACION</strong></font></td>
</tr>
<tr>
<td height="46"><input type="text" size="15" name="titulo" value="'.$row[titulo].'"></td>
<td><input type="text" size="15" name="telefono" value="'.$row[telefono].'"></td>
<td><input type="text" size="25" name="operacion" value="'.$row[operacion].'"></td>
</tr>
<tr bgcolor="#666666" height="24">
<td><font color="#FFFFFF"><strong>BAÑOS</strong></font></td>
<td><font color="#FFFFFF"><strong>HABITACIONES</strong></font></td>
<td><font color="#FFFFFF"><strong>CIUDAD</strong></font></td>
</tr>
<tr>
<td height="46"><input type="text" size="15" name="banos" value="'.$row[banos].'"></td>
<td><input type="text" size="25" name="habitaciones" value="'.$row[habitaciones].'"></td>
<td><input type="text" size="15" name="ciudad" value="'.$row[ciudad].'"></td>
</tr>
<tr bgcolor="#666666" height="24">
<td><font color="#FFFFFF"><strong>PROVINCIA</strong></font></td>
<td><font color="#FFFFFF"><strong>m2</strong></font></td>
<td><font color="#FFFFFF"><strong>PRECIO EN DOLARES</strong></font></td>
</tr>
<tr>
<td height="46"><input type="text" size="15" name="provincia" value="'.$row[provincia].'"></td>
<td><input type="text" size="15" name="mtscuadrados" value="'.$row[mtscuadrados].'"></td>
<td><input type="text" size="15" name="precioventa" value="'.$row[precioventa].'"></td>
</tr>
<tr bgcolor="#666666" height="24">
<td><font color="#FFFFFF"><strong>PRECIO $</strong></font></td>
<td><font color="#FFFFFF"><strong>PRECIO ALQUILER</strong></font></td>
<td><font color="#FFFFFF"><strong>TIPO DE INMUEBLE</strong></font></td>
</tr>
<tr>
<td height="46"><input type="text" size="15" name="preciopesos" value="'.$row[preciopesos].'">
</td>
<td><input type="text" size="15" name="preciorenta" value="'.$row[preciorenta].'"></td>
<td><input type="text" size="15" name="tipoinmueble" value="'.$row[tipoinmueble].'"></td>
</tr>
<tr bgcolor="#666666" height="24">
<td><font color="#FFFFFF"><strong>DESCRIPCION</strong></font></td>
<td><font color="#FFFFFF"><strong>FECHA DE INGRESO</strong></font></td>
<td><font color="#FFFFFF"> </font></td>
</tr>
<tr>
<td height="46">
$oFCKeditor = new FCKeditor('descripcion');
$oFCKeditor->BasePath = "fckeditor/";
$oFCKeditor->Width = "600" ;
$oFCKeditor->Height = "500" ;
$oFCKeditor->Value = $row['descripcion'];
$oFCKeditor->Create() ;
</td>
<td><input type="text" size="15" name="fechaingreso" value="'.$row[fechaingreso].'"></td>
<td> </td>
</tr>
<tr bgcolor="#666666" height="24">
<td><font color="#FFFFFF"><strong>IMAGEN</strong></font></td>
<td><font color="#FFFFFF"><strong>IMAGEN 1</strong></font></td>
<td><font color="#FFFFFF"><strong>IMAGEN 2</strong></font></td>
</tr>
<tr>
<td height="46"><input type="text" size="15" name="imagen" value="'.$row[imagen].'"></td>
<td><input type="text" size="25" name="imagen1" value="'.$row[imagen1].'"></td>
<td><input type="text" size="15" name="imagen2" value="'.$row[imagen2].'"></td>
</tr>
<tr bgcolor="#666666">
<td><strong><font color="#FFFFFF">REFERNCIA</font></strong></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="46"><input type="text" size="15" name="referencia" value="'.$row[referencia].'"></td>
<td></td>
<td></td>
</tr>
</table>
<tr align="right"><td><input type="submit" value="Editar"></td> </tr>
</form>';
}
mysql_free_result($result);
mysql_close($enlace);
?>