Flex php XML return connection

Hello! IM new to flex and I have a question I hope someone can answer. I have a flex application I'm building that needs to display a list of dynamic images, preferably with icons. I built the list of titles, but I do not know how to connect the HTTPService data to the list. the HTTPService returns XML data, it must be easy. but, as I said, Im really new. Please help me!

"arthurlockman" wrote in message
News:g7kk4g$177$1@forums. Macromedia.com...
> Hello! IM new to flex and I have a question which I hope someone can
> response. I have a flex application I'm building that needs a list
> of
> dynamic images, preferably with icons. I built the list, but I have no
> soaps
> How to connect the HTTPService data to the list. the HTTPService is
> return
> The XML data, so it must be easy. but, as I said, Im really new. Help, please
> Me!
>

Depending on what you are willing to do, you can either use a Repeater with
a picture or a custom component that contains an Image or you can use a list
component to display an Image or a custom with a base Image component (or
SwfLoader, or Loader) inside. It is literally a ton of stuff on it
in the help. Here are a few places that you can try:

Help > Flex Start Page > creating a Simple RIA
Help > Help contents > User Interfaces
-With the help of data providers and Collections
-Controls
-Image
-SwfLoader
-With the help of data-driven controls
-With the help of converters point and section editors
-Dynamically repeating controls and containers

Here is an example that might get you quickly * if * you are not the type
to read the docs:

http://examples.Adobe.com/flex2/inproduct/SDK/PhotoViewer/PhotoViewer.html

HTH;

Amy

Tags: Flex

Similar Questions

  • PHP, xml and Flash [multiple holders]

    Hello

    A few days ago, I posted a discussion related to php, xml and Flash. I want to display my xml in flash. I am using to do so. I now have a problem of obtaining xml data in my table to appear on different licensed video clips.

    It's my code. I tried a different configuration of the code, but without success.

    var urls:Array = [];

    var: index number;
    var index1:Number;

    var xml = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = parseXML;
    XML. Load ("Content.php");

    parseXML() {} function
    for (var i: Number = 0; i < this.firstChild.childNodes.length; i ++) {}
    URLs.push (this.firstChild.childNodes [i].firstChild.nodeValue);
    }

    index = 0;
    index1 = 1;

    startyourappF();

    }

    function startyourappF() {}

    this.onEnterFrame = preloadA;

    holder.loadMovie (urls [index]);

    This is me trying it to get the second element in the url in an another film clip holder.

    holder1.loadMovie (URLs [index1]);
    }

    function preloadA() {}

    If (Holder.getBytesLoaded () > 50 & & holder.getBytesLoaded () > = holder.getByte sTotal()) {}

    delete this.onEnterFrame;

    Holder._width = 260,0;

    Holder._height = 96.0;
    }

    This should be resizing to the holder of the second.
    If (holder1.getBytesLoaded () > 50 & & holder1.getBytesLoaded () > = holder1.getB ytesTotal()) {}

    delete this.onEnterFrame;

    holder1._width = 260,0;

    holder1._height = 96.0;
    }
    }

    The success of code loads the holder first image but cannot load the second url holder1 and others, that I want to add. I spend the whole night to try different configurations of the code but without success.

    I hope you can help me. All I need is more than an image loaded from the URL variable in several other variables of the licensee.

    Hope you can help.

    soon > >

    You must first set the structure of your directory and you will need to use relative URLS.  There is no sense to work on something else because what works now in your first image, and if you fix the code in your 2nd frame, it will break as soon as you download on your server.

    Thus, to duplicate the configuration of directory, that you plan to use on your server and use relative URLS.

    If your xml, html and swf are in the same directories and you intend to keep them in the same directories when you download on your server, use load ("timol.xml") to load your xml file.  Similarly, remove all path information to load anything else.

  • PHP, xml and Flash

    Hello

    Someone can help me. I try to query an sql database and echo the image in xml format so I can display the image in flash.

    I already know how to query and echo the url of the image of the database.

    This is the code:

    The database is queried at this stage already.

    echo "<? XML version=\"1.01\"? " "> \n";

    echo "< content > \n";

    While ($Nile = mysql_fetch_assoc (Run))

    {

    echo "< point >." $nile ['content']. "" < / item > \n ";

    }

    echo "< / content > \n";

    Flash I creat table to insert a URL and an xml object echoes images. It looks like this.

    This is after you have created the table of object and xml next url the loop for to insert the XML.

    thexml.onLoad = function)

    {

    var photos: Array = thisfirstChild.childNodes;

    for (i = 0; i < photos.length; i ++)

    {

    This pushes the XML in a table of URLs

    URLs.push (photos [i]. Attributes.URL);

    }

    This is supposed to load individual data into the flash movie object.

    movieobject.loadMovie(urls[0]);

    movieobject.loadMovie(urls[1]);

    }

    x.Load (Content.php);

    The echo in the first code xml produces a url link that contains a link to an image in the database. The flash is supposed to display the image on a flash clip call movieobject animation. I have some difficulty in getting the image displayed in flash. If anyone can change or provide the new code, it would be really useful.

    More PHP XML , you can view

  • Get.get ('XML') returns Null

    I use AJAX in my program to recover the city and the State of the ZIP Code entered. It used to work now it isn't and I don't know why. I have not changed at all the javascript or the application process. During the decoding of the javascript, I discovered that get.get('XML') returns NULL.

    The javascript is as follows:
    <script language="JavaScript" type="text/javascript">
    <!--
    function pull_multi_value(pValue){
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
        'APPLICATION_PROCESS=SET_CITY_STATE',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    }    
    gReturn = get.get('XML');
    alert('gReturn'+gReturn);
      if(gReturn){
            var l_Count = gReturn.getElementsByTagName("item").length;
            for(var i = 0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    }
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }
    else if(l_El.tagName == 'SPAN' &&
    l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    }
    }
    }
    }
    get = null;
    }

    //-->
    </script>
    The on-demand process is as follows:
    DECLARE
    v_county VARCHAR2 (25);
    v_city VARCHAR2 (25);
    v_state VARCHAR2 (2);
    v_zip varchar2 (5);
    CURSOR cur_c
    IS
    SELECT the County, city, State, zip
    OF ZIP
    WHERE zip = v ("TEMPORARY_APPLICATION_ITEM");
    BEGIN
    HTP.p (: TEMPORARY_APPLICATION_ITEM);
    C BY cur_c
    LOOP
    v_city: = c.city;
    v_state: = c.state;
    v_zip: = c.zip;
    v_county: = c.county;
    END LOOP;
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< body >");
    HTP.prn ("< desc > This XML genericly defines several elements < / desc > '");
    HTP.prn ("< item id ="P2_CO_CITY"> ' |") v_city | ("< / item >");
    -HTP.prn ("< option id ="P2_CO_STATE"value ="' | c.state |) '">' || c.State | ("< / option >");
    HTP.prn ("< item id ="P2_CO_STATE"> ' |") v_state | ("< / item >");
    HTP.prn ("< item id ="P2_COUNTY"> ' |") v_county | ("< / item >");
    HTP.prn ("< item id ="P2_CO_ZIP"> ' |") v_zip | ("< / item >");
    HTP.prn ("< / body >");
    EXCEPTION
    WHILE OTHERS
    THEN
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< body >");
    HTP.prn ("< desc > This XML genericly defines several elements < / desc > '");
    HTP.prn ("< item id ="P2_CO_CITY"> ' |") SQLERRM | ("< / item >");
    HTP.prn ("< / body >");

    END;
    The javascript is run when someone tabs out of P2_CO_ZIP_LOOKUP. The HTML Form Element Attributes is:
    onChange = "pull_multi_value (this.value); »
    I ran the SQL statement from the On-Demand Process (ODP) in SQL Workshop and it worked fine.
    
    It doesn't work using FF or IE7 at my company but iIt works fine on APEX.ORACLE.COM. I tried using Firefox but could not find the cause of the problem.
    
    Login Credentials:
    Workspace:  RGWORK
    Application:  Online Certification Application Prototype (21405)     
    User:           tester
    Password:    test123
    Page     :     2 (Name and Address)
    
    Can someone help me?
    
    Thanks,
    Robert
    http:\\apexjscss.blogspot.com
    
    Edited by: sect55 on Mar 24, 2010 9:52 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    Hello:

    The AJAX call that happens from a public page? If so replace the '0' in the instantiation of the 'htmldb_Get' $v ('pFlowStepId').

    CITY

  • downloading a file, rename it to php and returns the new name of Flex

    Hello!

    I download a file in Flex, but I want to rename the file in php.

    However, I need flex for the new name of this file.

    I thought I could echo this string to use in the event of upload.complete, but the goal comes with the real/old file name.

    How can I get the file renamed?

    It's my php:

    <? PHP
    $file = $_FILES ['Filedata'];
    $tempFile = $file ["tmp_name"];
    $fileName = $file ['name'];
    $autoRename = SDAKJHASD.jpg

    If ($file ['error'] is UPLOAD_ERR_OK)
    {
    move_uploaded_file ($tempFile, ".") / files / "." $autoRename);
    echo $autoRename;  <- HOW TO RETRIEVE THIS STRING IN FLEX?

    ...
    ...
    ? >

    Thank you!!!
    CONSTRUCTION ~

    http://livedocs.Adobe.com/Flash/9.0/ActionScriptLangRefV3/Flash/NET/FileReference.html#Eve nt:uploadCompleteData

    Notice the 'data' part listed there.  Your function would seek to event.data for example.  You can send gross return strings, xml, or anything you want.

  • Flex and XML Variables

    Hi, I'm new to Flex and I tried to understand this, but as I can't find many tutorials on the net thought I may as well ask here.

    I currently have a Flex application that connects to a PHP that connects to the MYSQL db, then writes the XML, then it displays it in the data grid.

    Now, it's the problem.

    My XML looks a like that
    <>tiles

    <>tile
    < x >/< x > 1
    < y > 2 / < y >
    < timage > http://www.google.com/intl/en/nav_first.gif < / timage >
    < / slab >

    <>tile
    < x > 2 / < x >
    < y > 3 < /y >
    < timage > http://www.anotherimage.com/image/anotherimage < / timage >
    < / slab >

    < / tiles >

    I am trying to assign each timage to a variable with the url and then get a picture using the source of the url to display. I hope you understand what I'm trying to say that I'm not very good at explaining. The help is much appreciated thanks.

    Maybe I understand, either, but here's my point of view:

    (1) I think you should use TileList, no tile
    (2) set the dataProvider of the TileList on the object that you receive from your xml file

    Here's an example of super fast and dirty I basted together the TileList component example in the documentation:

    http://www.Adobe.com/2006/mxml"initialize ="initData (); ">

    Import mx.controls.Button;
    Import mx.collections. *;
    private var listArray:Array =]
    "" http://www.google.com/intl/en/nav_first.gif ", "
    "" http://www.google.com/intl/en/nav_current.gif ", "
    "" http://www.google.com/intl/en/nav_page.gif ", "
    "" http://www.google.com/intl/en/nav_next.gif " "
    [Bindable]
    public var TileListdp:ArrayCollection;

    private void initData (): void {}
    TileListdp = new ArrayCollection (listArray);
    }
    ]]>


    itemRenderer="mx.controls.Image"/ >

    Al

  • Can't get through the XML returned by the web service

    I'm using a .NET web service that returns the standard xml SOAP messages. After link "resultXML" to event.results [0], the variable displays its toString/toXMLString methods correctly and check the variable tree in the debugger displays the good exploration down. But browsing and/or variables affecting its children/descendants does not work properly. Variables are defined with the help of the. / operator or child/descendant methods are attached to something like XMLList(@8aa6701) without children and the toString methods return empty strings. I already tried to typecast between XML/XMLList and used methods of copy() with no results. Any suggestions?

    Found the answer to my own question. I needed to define and use the namespace defined in my SOAP message.

    http://livedocs.Adobe.com/Flex/3/HTML/data_access_6.html#194236

  • Flex and XML, and Combobox.

    Hello.

    First I'll apologize for whatever it is repeated. I've had a search through the forums, but it was a long and painful process, and I couldn't really find anything useful.

    Secondly, I'm new to Flex, please stick with me if I come out with things that should be obvious.

    The question.

    I created an application base of Flex. This becomes the XML data in a PHP page that querys a MS SQL DB.

    I have the data to fill a datagrid ok, this was done to ensure that it was getting the good things in the DB.

    What I actually want is to put the data in a combobox control, but what I currently get in the CB is [object Object] for each element.

    I really don't know where I went wrong, because the code is implemented that I found on a bunch of websites.

    I really appreciate any help, advice, tips or advice on where I'm wrong with this.

    Thank you very much.

    Now, codey bit...

    Try to add this attribute in the ComboBox element:
    labelField = "trust_name."

    It should look like this:

  • XMLTYPE stored as binary XML returns values

    Hi all

    I would like to understand behavior 'strange' between XMLTYPE stored as binary XML or CLOB.

    I've got the following table:

    create the table imp_spurplan

    (

    ID not null

    , dateiname varchar2 (100) is not null

    , xmltype xml_document not null

    , region varchar2 (10) not null

    )

    XMLTYPE COLUMN "XML_DOCUMENT" STORE AS BINARY XML;

    It contains 85 records.

    When I run the following query, the column "spurplanabschnitte" only contains NULL values:

    Select t.region

    sp.betriebsstelle

    sp.spurplanabschnitte

    of imp_spurplan_part t

    , xmltable ('/ XmlIssDaten' in passing t.xml_document)

    path of xmltype columns in spurplanbetriebsstellen 'Spurplanbetriebsstellen') m

    , xmltable (' / Spurplanbetriebsstellen/Spurplanbetriebsstelle ' adoption m.spurplanbetriebsstellen)

    path of columns betriebsstelle varchar2 (4000) "Betriebsstelle".

    spurplanabschnitte xmltype path '.') PS;

    If I create the table with CLOB:

    create the table imp_spurplan_part

    (

    ID not null

    , dateiname varchar2 (100) is not null

    , xmltype xml_document not null

    , region varchar2 (10) not null

    )

    XMLTYPE COLUMN "XML_DOCUMENT" STORE AS CLOB BASICFILE

    then the query returns the values in the column "planned just like spurplanabschnitte.

    What is the difference? What do I wrong when I use binary XML?

    Thank you and best regards

    Matthias

    Thank you.

    It works for me on 11.2.0.2.

    By chance, the following work?

    Select t.region

    sp.agency

    , xmlserialize (document sp.location) - added explicit serialization

    of imp_stores_lob t

    , xmltable (' / stores "in passing t.xml_document)

    path of xmltype of slots columns 'Locations') m

    , xmltable ("/ locations/location ' m.locations adopted)

    path of varchar2 (4000) column "agency."

    the xmltype location path '.') PS;

  • Drop into the PHP code to connect using MySQL and MyAdmin

    This code should be as common as dirt, but I need help in looking for it. Considering how most of the sites have a mode of connection it surprises me that DW does not have some kind of widget to encode the fundamentals, but I digress.  I have a family site private, accessible by a username / password to a file static login.php. I think of moving to the next level will require the use of MySQL and a database... which seems a bridge too far... However, what I "think" I want to do is... (especially #5)

    1. a login for predefined members (40 odd) system using a primary e-mail address as ID.
    2. a connection that has a remember me option
    3. a connection that would show the user the last time that he / she has logged in and how many times.
    4. a method of sending an email with the username and password of the user
    5. a method of object defining his username and / or password.
    6. When changes are made an email is sent to me
    7. and... possibly different access levels / permissions, as in, shareholder have full access and no shareholders / clients have access to only a few pages.

    Can point to a location that would have such a code available for a cut and paste the developer... with instructions

    Thank you for your time.

    Ralph3616 wrote:

    1. / * Adds a line of [] $authorization for each pair of login/password you want to add: * /.
    2. [$authorization] = array ('feldon', '123456', ' feldon @google.com ');
    3. [$authorization] = array ('ralphv', '1234only', ' [email protected]');
    4. [$authorization] = array ('guest', '1234guest', ' [email protected]');

    (How?)

    • Check if the email address exists and if so
    • Send an email to this address with the user name and password on this line. And a brief message... "xxxxxx xxxx xxxx" and a subject heading.
    • Otherwise, a different error message on any match and contact [email protected]

    A second page (the result of a failure, login) would have access to my login.php to find the desired information?

    I could make a file (database?) on my server with this list?

    Could this work? Can someone show me how?

    Thank you for your time.

    Here's one way you could do it, BUT it seems a lot of work if you have dozens of users - why your passwords/user names contained in the bays and not a database?

    In any case taking the 3 examples you gave above, and assuming that you have sent your username to a 'recover' username and password ' page that has a form on it asking the the e-mail address of the user (gives the name of "email_address" entry field and then submit directly to the next page) : it grabs the value of the field in the form email_address and then checks through the berries if the email address exists. If he sends the user name and password to this email address.

    I guess it's a site of low security keys so that you need not md5 passwords.

    NOTE PLEASE I HAVE INSERTED AN "X" IN THE E-MAIL ADDRESSES WHICH NEEDS TO BR REMOVED. (SPAM)

    <>

    $email_address = $_POST ['email_address'];

    [$authorization] = array ('feldon', '123456', ' [email protected]');

    [$authorization] = array ('ralphv', '1234only', ' [email protected]');

    [$authorization] = array ('guest', '1234guest', ' [email protected]');

    {If (in_array ($email_address, {$authorization [0]}))}

    $username = "feldon.

    $password = "123456".

    $email = "[email protected]";

    $matchFound = 'success ';

    }

    {If (in_array ($email_address, {$authorization [1]}))}

    $username = "ralphv";

    $password = "1234only";

    $email = "[email protected]";

    $matchFound = 'success ';

    }

    {If (in_array ($email_address, {$authorization [2]}))}

    $username = "guest";

    $password = "1234guest";

    $email = "[email protected]";

    $matchFound = 'success ';

    }

    {if (isset ($matchFound))}

    $to = $email_address;

    Object

    $subject = "Your user name and password";

    $headers = "from: $email_address\r\n";

    $headers. = "reply-To: $email_address\r\n";

    build the message

    $message = ' username: $username\n\n ";

    $message. = "password: $password\n\n";

    mail ($ $subject, $message, $headers);

    ECHO "we sent you an email with your username and password';

    }

    else {}

    echo "no user leaves with the e-mail address provided.

    }

    ?>

  • LiveCycle Designer: Handling complex XML returned by process Workbench LC

    Hello community,

    Location: The form XFA making a search request:

    (1) I have a LC process that has an "out" of variable of XML type.

    (2) the XML contains repetitive elements

    (3) the XFA form, makes a Web calling service to the LC process and stores the response XML ("search results") in a hidden text field.

    (4) I would now use this XML file to load a small section of the form (table) with the "search results".

    I am familiar with this method:

    -xfa.datasets.data.loadXML (tfRespXML.rawValue,, , 0, 1);

    However this re-charge the WHOLE with the XML form

    and unfortunately does not work. loadXML() on subforms/nodes!

    -> By the way the entire XML form upward and get the entire XML form + results of research as an answer is also not an option.

    Question:

    (1) Im very interested to know what, according to you, is the most convenient way to manage XML complex under a form of LC using Javascript?

    Hello

    You can call loadXML at a lower level of your dataset to keep more values, such as;

    xfa.datasets.Data.Form1.subform1.subform2.LoadXml (tfRespXML.rawValue, 0, 1);

    You can also use the Acrobat JavaScript Net object to call a Web service that returns a JavaScript object that is sometimes more convenient if you are trying to bind the data in return.

    Concerning

    Bruce

  • Help regarding php xml then will be flashing echo

    Hello guys! Im still new in use as2 and as3 so Im begging for your attention on how to solve my problem.

    I made a php that generates a XML file. This is the XML code 'load.xml '.

    <? XML version = "1.0" encoding = "utf-8"? >

    < GALLERY >

    Image1.jpg < IMAGE > < / IMAGE >

    < / GALLERY >

    Here is the version of php that displays the XML "load.php".

    <? PHP

    Header ("Content-type: text/xml");

    $host = "localhost";

    $user = 'root ';

    $pass = "";

    $database = "test";

    $gelo = "image1.jpg";

    / * xml output

    $xml_output = ' <? XML version=\"1.0\? > ';

    $xml_output. = "< GALLERY > ';

    $xml_output. = '< IMAGE > '. $gelo. "< / IMAGE >";

    $xml_output. = "< / GALLERY > ';

    echo $xml_output;

    ? >

    After that, I tried to echo in flash. When I try to use "myLoader.load (new URLRequest ("load.xml"));" "  It works fine, but when I try to change it to 'load.php' I got this error.

    TypeError: Error #1088: the markup in the document following the root element must be well-formed.

    at test_fla::MainTimeline/processXML()

    at flash.events::EventDispatcher/dispatchEventFunction()

    at flash.events::EventDispatcher/dispatchEvent()

    at flash.net::URLLoader/onComplete()

    Here is my Code

    var myXML:XML;

    var myLoader:URLLoader = new URLLoader();

    myLoader.load (new URLRequest ("load.php"));

    myLoader.addEventListener (Event.COMPLETE, processXML);

    function processXML(e:Event):void {}

    myXML = new XML (e.target.data);

    trace(myXML.image[0]);

    }

    Have a look here: http://dev.flashlabs.eu/examples/xml/

    All right... You can download the source and use it.

  • flex php configuration

    I HAV mde an application form which a connects to a database of php using WAMP.

    now the problem I m facing is that I want to deploy this application on my own server...

    I dnt know wat to put in webroot =? and rooturl =?...

    in wamp, I usually put webroot = Server (folder www) and rooturl = localhost...

    do I HAV to make changes also in the http query that calls the php file...?

    In my opinion, the development must be done locally.  After you're done bring, you can deploy everywhere where...

    The c:\ and the http://localhost you enter at the beginning is for the development, the definition you do for HTTPService is important, you must use root-relative paths, or if you want, you can do a hard http://www.yourdomain.com/directoryname

  • PHP, XML, AS2 - Login

    I'm trying to login, I got my database mysql, set up and everything. I'm doing the php file and the XML file for the moment.

    I don't KNOW IF THIS IS ALL GOOD - I'm NEW to PHP and XML.

    I want it so that when you enter your username and password on flash, it checks it on the database. So I did:


    $user = $_POST ['username'];

    $pass = $_POST ["password"];


    $query = "SELECT * from users WHERE username = '$user' and password = '$pass" ";

    So I then did one thing so if there is 1 row, then it varies from a true or false Boolean value.

    $result = mysql_query ($query) or die ("has no application");

    $checklog = false;

    $num = mysql_num_rows ($resultat);


    If ($num == 1) {}

    $checklog = true;

    } else {}

    $checklog = false;

    }

    Now, I'm doing the XML code. I want so if the $checklog is true, then he said 'yes '. Otherwise, it is said 'no '.

    If ($checklog == true) {}

    echo 'ago ';

    } else {}

    echo 'no ';

    }

    That's all I am at the moment, is there something wrong with that?

    that seems ok.  You can use:

    $user = $_POST ['username'];

    $pass = $_POST ["password"];

    $query = "SELECT * from users WHERE username = '$user' and password = '$pass" ";

    $result = mysql_query ($query) or die ("has no application");

    $checklog = false;

    $num = mysql_num_rows ($resultat);

    If ($num == 1) {}

    $checklog = true;

    } else {}

    $checklog = false;

    }

    If {($checklog)

    echo 'ago ';

    } else {}

    echo 'no ';

    }

  • PHP XML graphic drawing tool

    I'm trying to build a tool that creates a graph through data from a MySQL database, however the .swf does not seem to accept the xml created by the PHP sheet. I was wondering if anyone had any ideas on that?

    Thank you very much!

    private void loadXML (file:String = "graph.php"): void
    {
    urlLoader.load (new URLRequest (file));
    urlLoader.addEventListener (Event.COMPLETE, parseXML);
               
    }

Maybe you are looking for