Re: PHP query to javascript array
| From: | Marek Kilimajer | Date: | Fri, 06 Dec 2002 11:46:59 +0000 |
| Subject: | Re: PHP query to javascript array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127242@lists.php.net to get a copy of this message | ||
for numbers:
jsarray= new Array(<?= implode(',',$phparray) ?>);
for strings:
jsarray= new Array("<?= implode('","',$phparray) ?>");
Christian Ista wrote:
Hello, Could you tell me how to transform a PHP query result to a javascript array ? Same question, if you want to store several field from the query to the javascript. Christian,