Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 3 of 3
  1. #1

    Default Passing Different Variables in Flash

    I need help passing different variables to Flash.
    I can list everything from the database, with each item having it's own id number
    example:

    Code:
    <?
    $server = "localhost"; 
    $user = ""; 
    $pass = ""; 
    $db = ""; 
    
    $conn = mysql_connect&#40;$server,$user,$pass&#41;; 
    $db = mysql_select_db&#40;$db&#41;; 
    
    $sql="SELECT * FROM members ORDER BY name_l";
    $result=mysql_query&#40;$sql,$conn&#41;; 
    
    while &#40;$row = mysql_fetch_array&#40;$result&#41;&#41; &#123;
    $member_id = $row&#91;"member_id"&#93;; 
    $name_l = $row&#91;"name_l"&#93;;
    $name_f = $row&#91;"name_f"&#93;;
    echo &#40;"<font face=verdana size=2><A HREF=\"profile.php?id=$member_id\"> $name_l, $name_f</font></A>"&#41;;
    echo "
    
    ";
    &#125; 
    ?>
    Where member_id is, it changes (obviously), but when I click on a link, it automatically takes me to the first name listed in Flash.

    I need flash to know to pull the information corresponding with the proper id number.

    You can see what i mean here http://cheezyfries.net/test/test.php

    The Flash file pulls the information from here
    Code:
    <?
    $server = "localhost"; 
    $user = ""; 
    $pass = ""; 
    $db = ""; 
    
    $conn = mysql_connect&#40;$server,$user,$pass&#41;; 
    $db = mysql_select_db&#40;$db&#41;; 
    
    $sql="SELECT * FROM amember_members";
    $result=mysql_query&#40;$sql,$conn&#41;;
    
    $row = mysql_fetch_array&#40;$result&#41;; 
    $member_id = $row&#91;"member_id"&#93;;
    $name_l = $row&#91;"name_l"&#93;;
    $name_f = $row&#91;"name_f"&#93;;
    
    echo "&name_f=$name_f&name_l=$name_l&member_id=$member_id"
    
    
    ?>
    Can anybody help me?

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    Unfortunatly, I am not very well informed when it comes to mySQL or pulling data from a database. The person to look for regarding this kind of development is "Musicman". He can be found in the backend and scripting forum on Flashkit.com. He is also a moderator for the flash-db.com forums. He is quite the guru when it comes to these kind of development questions.

    Sorry I couldn't be of more help
    Regards
    NTD
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  4. #3

    Default

    Quote Originally Posted by NTD
    Hi,

    Unfortunatly, I am not very well informed when it comes to mySQL or pulling data from a database. The person to look for regarding this kind of development is "Musicman". He can be found in the backend and scripting forum on Flashkit.com. He is also a moderator for the flash-db.com forums. He is quite the guru when it comes to these kind of development questions.

    Sorry I couldn't be of more help
    Regards
    NTD
    Thank you so much. I have been to 6 different forums asking for help, and you are the first person to give me any kind of a reply.
    I really appreciate the reply
    Thank You again

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Replies: 0
    Last Post: 05-27-2005, 12:29 AM
  2. passing variable to flash to highlight naviation item
    By ejbiv in forum Flash Scripting
    Replies: 4
    Last Post: 05-12-2005, 03:16 AM
  3. variables
    By KingKong in forum Flash Scripting
    Replies: 8
    Last Post: 12-24-2004, 02:35 AM
  4. Passing values from Flash to ASP
    By vender in forum Flash Scripting
    Replies: 1
    Last Post: 09-07-2004, 05:55 AM
  5. passing variables to popup
    By el jefe in forum Flash Scripting
    Replies: 2
    Last Post: 04-08-2004, 07:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial