php array inside javascript array .push


This question is an exact duplicate of:


Here are some steps to take:

  1. Make sure you're only putting PHP code in a .php file
  2. Use an on-page <script> tag or an AJAX/JSON request.

example: Use json_encode:

File: data.php

echo json_encode( $my_array );

File read_data.js

$.getJSON( 'data.php', function(data){
    bigData.teams.push( data );

Need Your Help

Debugging JavaScript in Chromium Embedded Framework

wpf debugging chromium-embedded

I have a WPF application which uses CEF to display web content. My question is, is there a way to debug the Javascript/Web parts inside a WPF application?

How to save image to mySQL which the user have uploaded

java mysql image

I want to tell me How to save image to the mySQL after the user uploaded.