Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/01/2009, 17:47
Avatar de Avatar810
Avatar810
 
Fecha de Ingreso: agosto-2007
Ubicación: Por rumbos Regios
Mensajes: 485
Antigüedad: 16 años, 9 meses
Puntos: 23
Respuesta: Error en el código al buscar

Prueba con esto:

Código PHP:
$palabra=$_POST['TxtBuscar']; 
for (
$i=0;$i<sizeof($matriz);$i++) 
  {     
    echo 
"<table border=1 ALIGN=center CELLPACING=7> "
     
      if ((
stristr($array_biblioteca[$i][0], $palabra)))  
      { 
            echo 

        <tr> 
            <td ALIGN=center>"
.$array_biblioteca[$i][1]."</td> 
            <td ALIGN=right>"
.$array_biblioteca[$i][0]."</td> 
            <td ALIGN=right>"
.$array_biblioteca[$i][2]."</td> 
        </tr> "
;  
      } 
      echo 
"</table>"
  } 

Pq usas $this->array_biblioteca[$i][0] ??
Acaso array_biblioteca no es una variable local al script? o esta dentro de una clase?

Saludos
__________________
Una demo siempre funcionará correctamente hasta que toque algo tu (hasta ahora) cliente.
Avatar810