Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/09/2007, 13:17
Avatar de T4ke0veR
T4ke0veR
 
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 16 años, 8 meses
Puntos: 28
Re: AYUDA: Buscador en flash

fiajte en los codigos
buscador.php
Código PHP:
<link href="estilos.css" rel="stylesheet" type="text/css" />
<!--<form id="form1" name="form1" method="post" action="">
  <label>
  <input type="text" name="s" id="s" />
  </label>
  <label>
  <input type="submit" name="enviar" id="enviar" value="Buscar" />
  </label>
</form>     -->
<?php include ('conect.php');
@
$s=$_REQUEST['s'];
        
$sql="SELECT articulos.nombre,
                     articulos.Id_articulo AS Id_articulo
             FROM articulos
             WHERE articulos.nombre LIKE '%$s%'"
;
        
$sql_exec=mysql_query($sql);
        
        
$sql2="SELECT noticias.titulo_noticias,
                     noticias.id_noticias AS id_noticias
             FROM noticias
             WHERE noticias.titulo_noticias LIKE '%$s%'"
;
        
$sql_exec2=mysql_query($sql2);
        
        
$sql3="SELECT nuevos.titulo_nuevos,
        nuevos.id_nuevos AS id_nuevos
        FROM nuevos
        WHERE nuevos.titulo_nuevos LIKE '%$s%'"
;
        
$sql_exec3=mysql_query($sql3);
        
        
$sql4="SELECT eventos.titulo,
        eventos.id_evento AS id_evento
        FROM eventos
        WHERE eventos.titulo LIKE '%$s%'"
;
        
$sql_exec4=mysql_query($sql4);

?>
        
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25" class="azulgrs_tah">Articulos :</td>
  </tr>
</table>
<?php while($row=mysql_fetch_array($sql_exec)){?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="gris_tah_nrm"><a href="ficha_prod.php?Id_articulo=<?=$row['Id_articulo']?>">
      <?=$row['nombre']?>
    </a></td>
  </tr>
  <tr>
    <td class="gris_tah_nrm">ficha_prod.php?Id_articulo=
    <?=$row['Id_articulo']?></td>
  </tr>
<?php if (empty($row)){echo "No hay resultados compatibles";}?>
</table>        
        
<?php }?>        
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25" class="azulgrs_tah">Eventos  :</td>
  </tr>
</table>
<?php while($row4=mysql_fetch_array($sql_exec4)){?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="gris_tah_nrm"><a href="p10_ev_01.php?id_evento=<?=$row4['id_evento']?>">
      <?=$row4['titulo']?>
    </a></td>
  </tr>
  <tr>
    <td class="gris_tah_nrm">p10_ev_01.php?id_evento=
      <?=$row4['id_evento']?></td>
  </tr>
</table>
<?php }?>
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25" class="azulgrs_tah">Noticias  :</td>
  </tr>
</table>
<?php while($row2=mysql_fetch_array($sql_exec2)){?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="gris_tah_nrm"><a href="p10_nt_01.php?id_noticias=<?=$row2['id_noticias']?>">
      <?=$row2['titulo_noticias']?>
    </a></td>
  </tr>
  <tr>
    <td class="gris_tah_nrm">p10_nt_01.php?id_noticias=
      <?=$row2['id_noticias']?></td>
  </tr>
</table>
<?php }?>
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25">Novedes  :</td>
  </tr>
</table>
<?php while($row3=mysql_fetch_array($sql_exec3)){?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="gris_tah_nrm"><a href="p10_np_01.php?id_nuevos=<?=$row3['id_nuevos']?>">
      <?=$row3['titulo_nuevos']?>
    </a></td>
  </tr>
  <tr>
    <td class="gris_tah_nrm">p10_np_01.php?id_nuevos=
      <?=$row3['id_nuevos']?></td>
  </tr>
</table>
<?php }?>
<br />
busca.php
Código PHP:
<?php require_once('conect.php');

if (isset(
$_POST['enviar'])) {
extract($_POST);
    
header("Location: ficha_prod.php?Id_articulo=".$model."");
    exit();
    
}
?>


<td width="608"><?php include('buscador.php'?></td>
en el boton del formulario
Código PHP:
on (release) {
        
campo campo.text;
        
getURL("busca.php?campo="+campo"_self""GET");
        
gotoAndPlay(2);

Me esta dando undefine