ojala me entiendan mi problema.......
estoy tratando de hacer un buscador y se me ha hecho muy dificil....
este es el primer codigo que utilizo...
eje.php
Código PHP:
<html>
<head>
<STYLE TYPE="text/css">{ cursor: pointer }</STYLE>
</head>
<body>
<form name="form1" method="post" action="conexion/bus.php">
Buscar:
<label>
<input name="buscar" type="text" id="txt_buscar">
</label>
<input type="submit" name="buscar" value="buscar">
</form>
<?php
// include("conexion/bus.php");
$_pagi_sql=$result;
$_pagi_cuantos = 10;
$_pagi_mostrar_errores = true;
include("paginas/paginator.inc.php");
echo "<table border = '1'> \n";
echo "<tr bgcolor='#ECE9D8'><td><div align='center'><strong>Id</strong></div></td><td><div align='center'><strong>Usuario</strong></div></td><td><div align='center'><strong>Nombre</strong></div></td><td><div align='center'><strong>Apellido</strong></div></td><td><div align='center'><strong>Cedula</strong></div></td><td><div align='center'><strong>Direccion</strong></div></td></tr> \n";
while ($row = mysql_fetch_array($_pagi_result))
{//Mostramos los registos pedidos
echo "<tr bgcolor='#FFFFFF'><td>".$row["id"]."</td><td>".$row["usuario"]."</td><td>".$row["nombre"]."</td> \n";
}//termina while
echo "</table> \n";
//termina la busqueda en si
?>
</body>
</html>
este es el codigo de bus.php
Código PHP:
<?
$texto=$_POST['buscar'];
if($texto=="")
{echo "debe de ingresar una palabra";
exit();
}
else{
include "conexion/conexion.php";
$link=Conectarse();
//CUENTA EL NUMERO DE PALABRAS
$trozos=explode(" ",$texto);
$numero=count($trozos);
if ($numero==1) {
//SI SOLO HAY UNA PALABRA DE BUSQUEDA SE ESTABLECE UNA INSTRUCION CON LIKE
$result=mysql_query("SELECT id,usuario,nombre FROM ing_usu WHERE usuario LIKE '%$texto%'",$link);
header("Location: eje.php");
}
?>
por favor ayudenme que estoy plantado y no puedo avanzar en mi proyecto y es para fin de mes....

ya estoy desesperado...........
