PHP/mySQL populating arrays
Moderator: General Moderators
PHP/mySQL populating arrays
I'm building a Flash gallery that loads a user's pictures based on name - trouble is, I'm not really sure what the best way to do this is. At the moment I'm considering using FlashVars and an array. PHP side, I need to take the user's username, query a table, and then populate an array with the URL's to the pictures depending on how many results are returned. Then, the array needs to be transferred to Flash through Flashvars. I would normally use PHP-generated XML, but all of this is taking place within Joomla's system. Flashvars have proved to be a great workaround for PHP/Flash interaction already. I would just like to know - is this possible?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: PHP/mySQL populating arrays
What is the best way to do it? I'm generally new to Arrays (and most of PHP).