Take the 2-minute tour ×  I want to write a PHP API through I
can create JSON file by using MySQL.  Suppose I have a table "A"
and I have 2 columns FILENAME and FILETYPE with 10 rows
inserted.  I have to write a PHP code which will create a JSON
file and take the data from table A (i.e. 10 rows) and print the
value in a valid JSON format into JSON file.  share|improve this
question please turn off caps lock while typing –  NullPoiиteя
Dec 3 '12 at 9:52 show us wat u have tried?? –  bipen Dec 3 '12
at 9:53 the question format is just bad. You aren't showing any
code, you are asking for the ppl here to do all the work for
you... take a look at the json_encode() function –  Naryl Dec 3
'12 at 9:54 ARE MAD WHILE TYPING YOUR QUESTION? –  John Woo Dec
3 '12 at 9:54 sorry for the caps lock, i have no idea how to
start with it. i have created a media player by using html5,
jquery and json. The json entry is done by user. now i want to
take the values from the mysql using php –  user1872169 Dec 3
'12 at 9:58 add comme