che_anj
09-12-2007, 02:37 PM
i have a query like $query="select * from users";
Id like to put in array the result $row[ad], and pass it into a javascript.
example like this code below
var state = '\
CA:AB:Alberta|\
CA:MB:Manitoba|\
CA:AB:Alberta|\
CA:YT:Yukon Territory|\
AU:AAT:Australian Antarctic Territory|\
AU:ACT:Australian Capital Territory|\
AU:NT:Northern Territory|\
how to make the follwing state into a dynamic depending on what is the result of the query.. tnx..
Id like to put in array the result $row[ad], and pass it into a javascript.
example like this code below
var state = '\
CA:AB:Alberta|\
CA:MB:Manitoba|\
CA:AB:Alberta|\
CA:YT:Yukon Territory|\
AU:AAT:Australian Antarctic Territory|\
AU:ACT:Australian Capital Territory|\
AU:NT:Northern Territory|\
how to make the follwing state into a dynamic depending on what is the result of the query.. tnx..