Welcome, Guest
  • Author Topic: Mysql > PHP > Flash (How to show the data in Mysql to the dataGrid in flash)  (Read 1073 times)

    hinomotoblade

    • Seasoned Programmer
    • ***
    • Posts: 131
    • Flash Never Die :D
      • View Profile
    Hey2 i want to know how to show some data in database in the data grid in flash, like as php

    Code: [Select]
    echo "
    <table>
    for (....) {
    <tr><td></td></tr>
    }
    </table>
    ";

    Nah how about in flash?.. :)

    Thank you very much.. a little help thats really appreciate :D
    Huihihi~ :D

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    If you use amfphp, you just transfer the records to flash and assign the complete object to the grids dataProvider attribute.

    If you use XML, you can do the same (its just a little more overhead in the data stream).

    If you want to throw them by text stream (delimited by &), you have to walk through the variables, and use the addItem methode.
    happy flashing
    8)
    Ronald

    hinomotoblade

    • Seasoned Programmer
    • ***
    • Posts: 131
    • Flash Never Die :D
      • View Profile
    Umm, i just know 1 way to send some text from php to flash,

    i used event.target.data.variable that contains the echo in PHP..

    but thats just send 1 data. thats wont work if i use for, the record is just the last data in the last of loop in my php.. :)

    thank you.. :)
    Huihihi~ :D

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    for more ways communicating, work with our loading and saving tutorials.
    Ther you'll learn how to handle structural data with XML or AMFPHP
    happy flashing
    8)
    Ronald

    hinomotoblade

    • Seasoned Programmer
    • ***
    • Posts: 131
    • Flash Never Die :D
      • View Profile
    Okay i will try that :) i will comfirm it sometimes to you master :)

    I want to learn XML first :)

    in my collage the XML subject is in the next semester T.T cant wait huhu..

    btw thanks really lot lot lot :D
    Huihihi~ :D

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    just to give you a hint:

    XML ist intended to be a transportation container for structural data.
    It is useful for small amount of data and for rarelay changing data, like configuration data etc.
    happy flashing
    8)
    Ronald

    hinomotoblade

    • Seasoned Programmer
    • ***
    • Posts: 131
    • Flash Never Die :D
      • View Profile
    :)

    Thanks a lot master..

    Um i have the tutorial about how to show data from XML tag to flash..
    but how about from database?..

    Can i make the XML depend on the database?..

    Can i connect from MYSQL>PHP>XML>FLASH?..
    Or there are a different way to do that?.. :O

    Thank youuu again.. :D
    Huihihi~ :D