i have a database query that is supposed to show the results on the table and it does except the last one.
here's the part of the script i have for retrieving the results:
function ARImovel() {
global $NOME_BD, $NOME_SERVIDOR;
$this->bd = new BDMySQL();
$this->bd->ligarBD($NOME_BD, "", "", $NOME_SERVIDOR);
}
function detalhesImovel($cod) {
$sql = "SELECT * FROM imoveis WHERE cod=\"$cod\"";
$rs=$this->bd->executarSQL($sql);
mysql_fetch_row($rs);
echo "<font size=+2><b>".mysql_result($rs, 0, "cod")."</b></font><br><br>";
echo "<img src=\"imagens/".mysql_result($rs, 0, "fotografia")."\"><br>";
echo "<b>Tipologia: </b>".mysql_result($rs, 0, "tipologia")."</b><br>";
echo "<b>Zona: </b>".mysql_result($rs, 0, "zona")."</b><br>";
echo "<b>Área: </b>".mysql_result($rs, 0, "area")."</b><br>";
/* here i want to open a text file which the filename is stored in the descricao column in the table*/
how read a text file stored in the root folder knowing that the filename is stored in the database table.
thanks in advance.