Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/12/2015, 14:33
Avatar de wunderwaffen077
wunderwaffen077
 
Fecha de Ingreso: marzo-2014
Mensajes: 45
Antigüedad: 10 años, 1 mes
Puntos: 3
Respuesta: Como devuelvo array en php a jquery

Tienes que crear array asociativos.



Codigo PHP.
--------------
Código PHP:
$array['ven_tivo']=$ven_tivo;
$array['ven_nuvo']=$ven_nuvo;
$array['valor']=$data;
echo 
json_encode($array); 
CODIGO JS:
--------------
Código HTML:
                var ven_tivo=data['ven_tivo'];
            	var ven_nuvo=data['ven_tivo'];