FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » problem with arrays/loops in PHP and javascript
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
icon1.gif  Re: problem with arrays/loops in PHP and javascript [message #36383 is a reply to message #34544] Tue, 20 March 2007 19:29 Go to previous message
nikola99 is currently offline  nikola99   United States
Messages: 3
Registered: March 2007
Karma:
Junior Member
Try removing the parentheses in JavaScript array assignments.

Also this might be quicker.

<?php
$rows = implode("', '", $rows);
?>
<script>
var a = new Array('<?=$rows?>');
</script>

[Message index]
 
Read Message
Read Message icon1.gif
Previous Topic: PHP & MYSQL OVERHEAD / INTERUPTION PROBLEM
Next Topic: Attaching File To a Page
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 00:03:59 GMT 2024

Total time taken to generate the page: 0.03710 seconds