*/ function getLista() { $sql = "SELECT * FROM felipe"; $resultado = mysql_query($sql); while ($linha = mysql_fetch_object($resultado)) { $ArrayRetorno[]=$linha; } mysql_free_result($resultado); return($ArrayRetorno); } /**
On 24 abr, 11:11, Jaison <jaison.garop...@gmail.com> wrote: > Felipe, me referia na sua função getLista(). Posta ela aí. > > 2009/4/24 felipe business <felipebussi...@gmail.com> > > > > > [Bindable] > > public var PHPDados: Array; > > public var gateway: ConexaoRemota; > > public function buscaMySQL():void { > > gateway = new ConexaoRemota("http://xxxxxxxxxx/amfphp/ > > gateway.php"); > > gateway.call("felipe.getLista", new Responder(onOK, > > onFalha)); > > PHPDados = ['loadiando']; > > } > > > dataProvider="{PHPDados}" > > > On 24 abr, 10:33, Jaison <jaison.garop...@gmail.com> wrote: > > > posta a função que você fez pra retornar os dados. > > > > 2009/4/24 Jaison <jaisondeolive...@gmail.com> > > > > > posta pra nós a função que faz o select no banco e retorna o array pro > > flex > > > > (ta usando php ou java?) > > > > > 2009/4/24 felipe business <felipebussi...@gmail.com> > > > > >> Ok. acrescentei ORDER BY id DESC no sql, mas no flex dataGrid a nova > > > >> inscricao nao passou pra cima > > > > >> On 24 abr, 10:07, Eduardo Kraus <eduardokr...@gmail.com> wrote: > > > >> > SELECT * FROM felipe ORDER BY id DESC *Eduardo Kraus* > > > >> > Desenvolvedor > > > >> > eduardokr...@gmail.comhttp://blog.mxml.com.br > > > > >> > 2009/4/24 felipe business <felipebussi...@gmail.com> > > > > >> > > Estou usando esse codigo. > > > >> > > CREATE TABLE `felipe` ( > > > >> > > `id` int(11) unsigned NOT NULL auto_increment, > > > >> > > `nome` varchar(60) NOT NULL default '', > > > >> > > `email` varchar(60) NOT NULL default '', > > > >> > > PRIMARY KEY (`id`) > > > >> > > ) ENGINE=InnoDB DEFAULT CHARSET=utf8 > > > > >> > > onde completo com SELECT * FROM *tabela *ORDER BY *id DESC* ? > > > >> > > obrigado a atencao. > > > > >> > > On 24 abr, 09:58, Eduardo Kraus <eduardokr...@gmail.com> wrote: > > > >> > > > SELECT * FROM *tabela *ORDER BY *id DESC* > > > > >> > > > SELECT * FROM *tabela *ORDER BY *data DESC* > > > >> > > > *Eduardo Kraus* > > > >> > > > Desenvolvedor > > > >> > > > eduardokr...@gmail.comhttp://blog.mxml.com.br > > > > >> > > > 2009/4/24 felipe business <felipebussi...@gmail.com> > > > > >> > > > > Como ordeno decrescente? > > > > >> > > > > On 24 abr, 09:47, Eduardo Kraus <eduardokr...@gmail.com> > > wrote: > > > >> > > > > > Você pode ordenar o ID ou a data descendente. > > > >> > > > > > *Eduardo Kraus* > > > >> > > > > > Desenvolvedor > > > >> > > > > > eduardokr...@gmail.comhttp://blog.mxml.com.br > > > > >> > > > > > 2009/4/24 felipe business <felipebussi...@gmail.com> > > > > >> > > > > > > Ao inserir uma nova data na minha tabela, ela aparece no > > meu > > > >> > > dataGrid > > > >> > > > > > > na ultima posicao. > > > >> > > > > > > Quero que a nova data apareca na primeira posicao do > > dataGrid. > > > >> > > > > > > Alguem tem esse conecimento? --~--~---------~--~----~------------~-------~--~----~ Você recebeu esta mensagem porque está inscrito na lista "flexdev" Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com Para sair da lista, envie um email em branco para flexdev-unsubscr...@googlegroups.com Mais opções estão disponíveis em http://groups.google.com/group/flexdev -~----------~----~----~----~------~----~------~--~---