Ver Mensaje Individual
  #5 (permalink)  
Antiguo 23/08/2015, 12:46
rpstrato
 
Fecha de Ingreso: agosto-2015
Ubicación: Talcahuano
Mensajes: 5
Antigüedad: 8 años, 8 meses
Puntos: 0
Respuesta: Select multiple Mysql y PHP?

Comprendo a lo que te refieres, es que igual es extraño que no entre al ciclo while del Fetch_array ya que en el myadmin si retorna los valores que necesito. No logro descubir que esta mal.
hice la prueba con el fetch_field
Código PHP:
while ($a=mysql_fetch_field($result))
{
echo 
var_dump($a);
echo 
"<br>";

y me retorna lo siguiente:
"object(stdClass)#1 (13) { ["name"]=> string(12) "nombre_linea" ["table"]=> string(5) "linea" ["def"]=> string(0) "" ["max_length"]=> int(0) ["not_null"]=> int(1) ["primary_key"]=> int(0) ["multiple_key"]=> int(0) ["unique_key"]=> int(1) ["numeric"]=> int(0) ["blob"]=> int(0) ["type"]=> string(6) "string" ["unsigned"]=> int(0) ["zerofill"]=> int(0) }

object(stdClass)#2 (13) { ["name"]=> string(15) "letra_recorrido" ["table"]=> string(9) "recorrido" ["def"]=> string(0) "" ["max_length"]=> int(0) ["not_null"]=> int(1) ["primary_key"]=> int(0) ["multiple_key"]=> int(0) ["unique_key"]=> int(0) ["numeric"]=> int(0) ["blob"]=> int(0) ["type"]=> string(6) "string" ["unsigned"]=> int(0) ["zerofill"]=> int(0) } "

Ademas el
Código PHP:
$result mysql_query($sql2$link);
echo 
var_dump($result); 
me retorna : "resource(7) of type (mysql result)"

como tu dices funciona pero no retorna y por que retorna en el myadmin. espero solucionarlo.
saludos