Home Tutorials Forums Articles Blogs Movies Library Employment Press
Prev Previous Post   Next Post Next
Old 10-13-2004, 09:49 PM   #1
Can i help?
emilioestevezz's Avatar
Join Date: Nov 2003
Location: Buenos Aires, Argentina. Language: Spanish/english
Posts: 129
Exclamation Comunity ALL!! Flash-Mysql only sowing last entry, not all

ERRATA: The title of this thread was edited due to popular complaints, sorry for that! Original Title: Cyan Blue, you are the only one who can help me!!!

Hi Guys:

, i ´ve got this script that read data from a php file (php file makes a query to a mysql database and sends data to flash) the problem is that it only shoes the last entry of the database i want to show all existing data of the database.

So can anyone recommend me some changes to my script for doing this??

This is the as code:

ActionScript Code:
var myData:LoadVars = new LoadVars(); myData.onLoad = function(succes) {     if (succes) {         _root.Id_tb.htmlText = this.Id;         _root.Apellido_tb.htmlText = this.Apellido;         _root.Nombre_tb.htmlText = this.Nombre;         _root.Dni_tb.htmlText = this.Dni;         _root.Telefono_tb.htmlText = this.Telefono;         _root.Dia_tb.htmlText = this.Dia;         _root.Mes_tb.htmlText = this.Mes;         _root.Ano_tb.htmlText = this.Ano;         _root.Hora_tb.htmlText = this.Hora;         _root.Minutos_tb.htmlText = this.Minutos;         _root.Abogado_tb.htmlText = this.Abogado;         _root.Asunto_tb.htmlText = this.Asunto;         _root.Donde_tb.htmlText = this.Donde;             } else {         trace("Error loading data");     } }; myData.load("muestradevvars.php");

I also have ontop of these textboxes used for displaying data, a listbox where i list only the lastname (Apellido) of the clients that are stored in the mysql database, i would like , that when a user click on the lastname, with as code to fill in the other texboxes with the coresponding database data for that specific record.

Im sending you the fla that have by now, so can see what i am talking about.

Attached Files
File Type: zip showdata2.zip (171.5 KB, 118 views)

Last edited by emilioestevezz; 10-14-2004 at 02:01 PM.
emilioestevezz is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 09:11 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.