Uname: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
Software: Apache
PHP version: 5.6.40 [ PHP INFO ] PHP os: Linux
Server Ip: 217.160.0.194
Your Ip: 216.73.216.203
User: u72294154 (9179942) | Group: ftpusers (600)
Safe Mode: OFF
Disable Function:
NONE

name : resultados.php
<?php
header ("Content-Type: text/html;charset=ISO-8859-1");
require $_SERVER['DOCUMENT_ROOT']."/zonaprivada/includes/global.lib.php";
require "config.php";
  // Texto de busqueda
  if( isset($_GET["q"]) && ($_GET["q"] != "") && ($_GET["q"] != "") ){
      $sql = "
	  SELECT 
	  	$clave,
		$campo_busqueda
	  FROM 
	  	$tabla
	  WHERE 
	  	TRIM($campo_busqueda) LIKE '".$_GET["q"]."%' 
      ORDER BY 
	   	$campo_busqueda
		";
  }else{
	  die();
  }
  $resultado = mysql_query($sql);
?>
	<select name="<?=$clave;?>" id="<?=$clave;?>" style="width:170px" size="8"  onkeydown="if(event.keyCode==13) document.filtro.submit();">
<?
  if( mysql_num_rows($resultado) > 0 ){
	while ($registro = mysql_fetch_assoc($resultado)) {
		?>
			<option value="<?=$registro[$clave];?>" ondblclick="document.filtro.submit();"><?=$registro[$campo_busqueda];?></option>		
		<?
	}
?>
	</select>
<?
  }
?>
© 2026 GrazzMean