Export data from mysql table row into an array format
Posted
by
user1804952
on Stack Overflow
See other posts from Stack Overflow
or by user1804952
Published on 2012-11-10T20:09:19Z
Indexed on
2012/11/10
23:00 UTC
Read the original article
Hit count: 145
I am trying to output data from
- table : artists
- row : artist
into this format. Artist Names can have special characters and there are over 16k of them. It needs to be written to a file. called anything artist.php for example
$Artist = array(
"Name from database",
"Name from database",
"Name from database",
"Name from database",
"Name from database"
);
ok sorry for not explaining. do this for ajax auto complete.. so i need to create a file with this array in it.
here is the exact script http://www.brandspankingnew.net/specials/ajax_autosuggest/ajax_autosuggest_autocomplete.html
© Stack Overflow or respective owner