hola no no me da, me sale error....
Código PHP:
Ver original<!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=iso-8859-1" />
<title>TuPortalGuia.com</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.Estilo1 {color: #000000}
.style7 {font-size: 0.7em}
.Estilo2 {color: #FF0000}
-->
</style>
<style type="text/css">
<!--
.style17 {font-size: 12px}
-->
</style>
<script>
var miPopup;
function abreVentana(valor)
{
miPopup = window.open("ver_detalles.php?id=" + valor,"miwin","width=600,height=500,scrollbars=yes,target='_black'");
miPopup.focus();
}
</script>
</head>
<body>
<?php
include "conex.php";
$link=Conectarse();
$Categoria = $_GET['term'];
?>
<div id="botBody">
<table width="65%" border="0" align="center" bgcolor="#FFFFFF">
<tr>
<th height="124" bgcolor="#FFFFFF"><p class="style7"><img src="oferta.jpg" alt="Gestor Busquedas" width="118" height="119" border="0" class="logo" title="Gestor Busquedas" /></a></p>
<p class="style7">Resultados de la búsqueda para: <?php echo $Categoria; ?></p></th>
</tr>
</table>
<br />
<?PHP
$consulta="SELECT Autor, Titulo, Descripcion, Imagen From Ofertas WHERE TipoEmpresa='$Categoria'";
{
?>
<table width="90%" border="0" align="center" class="primeralineaizquierda">
<tr>
<td width="590" bgcolor="#FFFFFF"><strong><span class="Estilo3"><?php echo $row1[1] ?>:</span></strong></td>
<td width="200" rowspan="3" align="center" valign="middle" bgcolor="#FFFFFF"><div align="center"><span class="style7">
<?php
if ($row1[3])
{
echo "<img src='Logos/$row1[3]' width=\"80\" height=\"60\">";
}
?>
</span></div>
</td>
<tr>
<td bgcolor="#A9D0F5"><span class="style17"> Descripción:<?php echo $row1[2] ?> <br>
Servicio Ofrecido Por: <?php echo $row1[0] ?> </span></td>
</tr>
</table>
<?php
}
?>
<?php
$link1=Conectarse();
$Categoria = $_GET['term'];
$sql2 = "select Autor, Titulo, Descripcion, Imagen From Ofertas WHERE TipoEmpresa='$Categoria' order by id DESC";
$link1->consulta($sql2);
$NroRegistros = $link1->numregistros();
$PagAnt=$PagAct-1;
$PagSig=$PagAct+1;
$PagUlt=$NroRegistros/$RegistrosAMostrar;
$Res=$NroRegistros%$RegistrosAMostrar;
if($Res>0) $PagUlt=floor($PagUlt)+1; if ($NroRegistros > 0)
{
?>
<div class="paginacion" >
<a href="<?php echo $_SERVER['PHP_SELF'];?>?pag=1"> «</a>
<?php
for ($i = 1; $i <= $PagUlt; $i++)
{
if ($PagAct == $i)
echo '<span class="pagina_actual">'.$i.'</span>';
else
echo '<a href="'.$_SERVER['PHP_SELF'].'?pag='.$i.'">'.$i.'</a>';
}
?>
<a href="<?php echo $_SERVER['PHP_SELF'];?>?pag=<?php echo $PagUlt;?>"> »</a>
</div>
<?php
}
?>
</div>
</body>
</html>
Fatal error: Call to a member function consulta() on a non-object in C:\wamp\www\joomla\busqueda_ofertas.php on line 83
la linea es