O código é esse: Pagina Principal >>>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sem título</title>
</head>
<body>
<?php do { ?>
<form id="form1" name="form1" method="get" action="view.php">
<table width="153" border="0" align="center">
<tr>
<td width="147" align="center" valign="middle"><?php echo $row_Recordset1['Categoria']; ?></td>
</tr>
<tr>
<td align="center" valign="middle"><a href="view.php?codigo=.$codigo"><img src="img/<?php echo $row_Recordset1['Visualizacao']; ?>" width="150" height="150" /></td></a>
</tr>
<tr>
<td align="center" valign="middle"><?php echo $row_Recordset1['idImovel']; ?></a></td>
</tr>
<tr>
<td align="center" valign="middle"><?php echo $row_Recordset1['Bairro']; ?></td>
</tr>
<tr>
<td align="center" valign="middle"><?php echo $row_Recordset1['Cidade']; ?></td>
</tr>
<tr>
<td align="center" valign="middle"><?php echo $row_Recordset1['Comodos']; ?></td>
</tr>
<tr>
<td align="center" valign="middle"><?php echo $row_Recordset1['Valor']; ?></td>
</tr>
</table>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</form>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>
_________________________________________________________________________________________________________
View.php >>>>>>
<?php
include_once('Connections/teste.php');
$codigo $_GET["codigo"];
$query = "Select * FROM teste1 where idImovel like '".$codigo."'";
if(mysql_query($query)>0){
$rs = mysql_num_rows($query)
while($row = mysql_fetch_array($rs)){
//echo $row['teste'] - $row['teste2'];
}
else {
echo "produto não possui conteudo!";
}
}
?> ERRO: >>>> Paerse error: parse error, unexpected T_varialbe in C:\...\www\teste\view.php on line 5 ...