Page 1 of 1

PHP/mySQL populating arrays

Posted: Thu Feb 05, 2009 8:57 pm
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?

Re: PHP/mySQL populating arrays

Posted: Thu Feb 05, 2009 9:23 pm
by John Cartwright
Yes.

Re: PHP/mySQL populating arrays

Posted: Thu Feb 05, 2009 10:06 pm
by Teonnyn
What is the best way to do it? I'm generally new to Arrays (and most of PHP).