PHP/mySQL populating arrays

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Teonnyn
Forum Commoner
Posts: 58
Joined: Tue Dec 23, 2008 4:07 am

PHP/mySQL populating arrays

Post by Teonnyn »

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?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: PHP/mySQL populating arrays

Post by John Cartwright »

Yes.
Teonnyn
Forum Commoner
Posts: 58
Joined: Tue Dec 23, 2008 4:07 am

Re: PHP/mySQL populating arrays

Post by Teonnyn »

What is the best way to do it? I'm generally new to Arrays (and most of PHP).
Post Reply