Ver Mensaje Individual
  #6 (permalink)  
Antiguo 21/11/2012, 10:04
Avatar de pateketrueke
pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años
Puntos: 2534
Respuesta: Problemas con array error illegal string offset...

Entonces de ahí parte tu problema, tu función buscar() devuelve únicamente un resultado y no todos.

La función debería devolver un array, y cada elemento representar a una fila de resultados.

Código PHP:
function buscar($what) {
  
$out = array();

  while (
$row mysql_fetch_something()) {
    
$out []= $row;
  }

  return 
$out;

__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.