Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/08/2002, 09:15
Avatar de hadez
hadez
 
Fecha de Ingreso: noviembre-2001
Ubicación: Lima - Perú
Mensajes: 201
Antigüedad: 22 años, 5 meses
Puntos: 0
Re: Error con versiones

Hola Gracias por responder, en donde me da el error uso la version MySQL 3.23.36 y donde me funciona es con la 3.23.47

Este es el codigo completo incluyendo la consulta:

$sql="select c.catname,c.catid,s.subcatname,b.*";
$sql .= " from yp_subcategory s, yp_category c,yp_categorylist cl, yp_business b ";
$sql .= " where c.catid = s.catid and s.subcatid = cl.subcatid and cl.busid = b.busid";
$sql .= " and s.subcatid = $sid and c.catid = $cid ";
if ($ct <> "XYXYXZxyxz") {$sql .= " and city like '%$ct%' ";}
if ($bn <> "XYXYXZxyxz") {$sql .= " and name like '%$bn%'";}
if ($rg <> -1) {$sql .= " and region = $rg ";}
$sql .= " and b.active = 1 order by b.paidad desc,b.name";
$result = mysql_query($sql);
if ($debugstat == 1) {echo "[DEBUG] ct=$ct : bn=$bn : rg=$rg : sid=$sid : cid=$cid<br>sql=$sql<br>";}

$adheader = 0;
while($busarray=mysql_fetch_array($result))
{
if ($adheader == -1 and $busarray[paidad] == 1) {
echo "<td colspan=2 align=left bgcolor=$bgcolor2 color=$textcolor2>"._YPPAIDADFND."&lt ;/td></tr><tr>";


Espero que alguien me pueda ayudar.