Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/04/2009, 10:05
FMB89
 
Fecha de Ingreso: abril-2009
Mensajes: 15
Antigüedad: 15 años
Puntos: 0
Respuesta: pasos para hacer un buscador en php

Fijate, seria algo asi...

Modifica los ??? de acuerdo a tu base de datos...

Código PHP:
<form action="index.php" method="post">
    <input type="text" name="campo" />
    <input type="submit" value="Buscar" />
</form>

<?

if ($_POST['campo']) {
    
$res mysql_query("SELECT * FROM ??? WHERE ??? LIKE '".$_POST['campo']."'");
    while (
$arr mysql_fetch_array($res)) {
        print(
$arr['???']);
    } 
// end while
// end if

?>