Is there any possible way to get a data from a DB using MYSQL and store it in javascript Array.
Thanks in Advance
Is there any possible way to get a data from a DB using MYSQL and store it in javascript Array. Thanks in Advance |
|||
|
Fetch it as an associative array, and then use json_encode to create a JavaScript array, stored in a string. | |||
|
Then you can do something like
OR
| ||||
|
Actually this is a pretty vague question, but I think AJAX is what you're looking for. EDIT: Of course JSON will workout too and might even be more straight forward... | |||||||||
|