Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/05/2012, 08:09
facv_facv
 
Fecha de Ingreso: mayo-2012
Mensajes: 1
Antigüedad: 12 años, 9 meses
Puntos: 0
BUsqueda en base de datos

Tengo un problema al momento de querer buscar algo en la base de datos
me marka este error
Fatal error: Call to a member function consulta() on a non-object in





<?
if($_REQUEST[buscar])
{
$clave = $_POST['clave'];
$sql = "Select area,numcasa,propiedad,direccion,habitaciones,prec iom,numcasa,metros From registro Where direccion like '%$texto'";
EL ERROR ME LO MARKA AKI----------->$rsl = $util->consulta($sql);
if(mysql_num_rows($rsl))
{
echo "<table border='1' align='center'> \n";
echo "<tr> \n";
echo "<td><b>area</b></td> \n";
echo "<td><b>numcasa</b></td> \n";
echo "<td><b>propiedad</b></td> \n";
echo "<td><b>direccion</b></td> \n";
echo "<td><b>habitaciones</b></td> \n";
echo "<td><b>metros</b></td> \n";
echo "<td><b>preciom</b></td> \n";
echo "</tr> \n";
while($rs = mysql_fetch_row($rsl))
{
echo "<tr> \n";
echo "<td>$rs[0]</td> \n";
echo "<td>$rs[1]</td> \n";
echo "<td>$rs[2]</td> \n";
echo "<td>$rs[3]</td> \n";
echo "<td>$rs[4]</td> \n";
echo "<td>$rs[5]</td> \n";
echo "<td>$rs[6]</td> \n";
echo "</tr> \n";
}
echo "</table> \n";
}
}
?>

alguien ke me pueda ayudar porfavor