PHP variables limit ??

is there limit for varibiles in AS3 and PHP
i have the folowing AS3 code in my flash file
var data1:Array=new Array(5000);
var data2:Array=new Array(5000);
var variables:URLVariables = new URLVariables();
var varSend:URLRequest = new URLRequest("http://localhost/New Folder1/test.php" );
varSend.method = URLRequestMethod.POST;
varSend.data = variables;
var varLoader:URLLoader = new URLLoader;
varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
varLoader.addEventListener(Event.COMPLETE, completeHandler);
    variables.varx= "w123";
    varLoader.load(varSend);
function completeHandler(event:Event):void{
  var phpVar1 = event.target.data.var1;
  var phpVar2 = event.target.data.var2;
  data1 = phpVar1.split('**');
  data2 = phpVar2.split('**');
and i have im my test.php
<?php
$string= "";
$string1= "";
$maxx=0;
$m=$_POST['varx'];
$c = oci_connect("*****", "****", "**************","AL32UTF8");
$s = oci_parse($c, "select * from mytable where id='$m'");
oci_execute($s);
PutEnv("NLS_LANG=AMERICAN_AMERCAN.AL32UTF8");
while (($row = oci_fetch_array($s, OCI_BOTH)) != false)
$maxx++;
if($maxx < 114 ){
  $string .=$row[0]."**";
  $string1 .=$row[1]."**";
print"var1=$string";
print"&var2=$string1";
?>
every things run good if the result less than 113 record, so i write in my code above if ($maxx <113),and if i remove if statment i got this :error #2101 the string passed to urlvariables.decode() must be a urlencoded query string contacting name/value pairs
and i have in my table 520 records so i cant understand where is the prolplem is there limit in varibles
and sorry for my language

the problem is solved i change URLLoaderDataFormat.VARIABLES to URLLoaderDataFormat.TEXT

Similar Messages

  • PHP Variables unloading

    I have a lot of included files in my site. At the end of each
    included file,
    I close the sql, but would also like to close the variables
    used to produce
    the HTML.
    I'm having a hard time with my searching getting some
    relevant results. Can
    somebody help me here on what I"m looking for?
    TIA,
    Jon Parkhurst
    PriivaWeb
    http://priiva.net.

    On Thu 24 Aug 2006 04:36:46p, crash wrote in
    macromedia.dreamweaver.appdev:
    > I have a lot of included files in my site. At the end of
    each included
    > file, I close the sql, but would also like to close the
    variables used
    > to produce the HTML.
    >
    > I'm having a hard time with my searching getting some
    relevant
    > results. Can somebody help me here on what I"m looking
    for?
    I'm not sure I follow you here. Are you saying that you want
    to limit
    the scope of the PHP variables to the included file, so that
    in something
    like this:
    <?php
    include_once('fileA.inc');
    include_once('fileB.inc');
    include_once('fileC.inc');
    ?>
    you can have a variable, say $crashsVariable, in fileA.inc,
    fileB.inc and
    fileC.inc, and have it take on a separate value in each of
    them, but not
    affect any of the others?
    Without doing any experimentation... Using the
    include_once()s makes the
    include files, and thus all their code, part of the larger
    code block.
    AFAIK, the scope of a variable would be the calling file, so
    the answer
    would be no.
    The PHP docs[1] have this to say:
    The scope of a variable is the context within which it is
    defined.
    For the most part all PHP variables only have a single
    scope. This
    single scope spans included and required files as well.
    but go on to add:
    However, within user-defined functions a local function
    scope is
    introduced. Any variable used inside a function is by
    default limited
    to the local function scope.
    So if you use $crashsVariable within a function within the
    included file
    (or, for that matter, the main file), it's local in scope.
    Otherwise, a
    variable exists for the entire page.
    If you've spent the include file building a long string of
    text, which is
    eventually output as HTML:
    <?php
    $myvar = "<head>\n";
    $myvar .= "<title>$myDynamicTitle</title>\n";
    echo $myvar;
    ?>
    the only way I know would be to do something like
    $myvar = '';
    Hopefully David Powers or somebody who actually knows might
    check in.
    [1]
    http://www.php.net/variables.scope

  • Autocomplete Declared PHP Variables in Dreamweaver

    Is there a way to autocomplete php variables that have been
    declared? For instance, whenever you type $ in a PHP code block, a
    pop up list would automatically come up with all the variables you
    have already declared. This would GREATLY speed up coding and help
    to insure coding accuracy.
    If there is a way to do this now, could someone please clue
    me in? I've searched and searched forums, help files, and google.
    If this is not available, where should I go to request this
    feature?
    Shanna

    jsteinmann wrote:
    > With asp.net missing, along with several other things
    discontinued, dreamweaver will have to cater to php developers in
    these kinds of ways.
    If you want Dreamweaver to add features posting this sort of
    comment in
    a user-to-user forum won't have the slightest impact on the
    direction
    that Dreamweaver actually takes. You need to make your views
    known by
    submitting feature requests through the official channel:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Submitting requests doesn't guarantee that your ideas will be
    adopted in
    the next version or even the one after that, but it does get
    them on the
    development team's radar.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • XSL and a php variable

    I am looking for a solution to a problem I am having with an
    XSL stylesheet and trying to use a php variable. The page I am
    working on is a page to display some information based on the
    graduation year of a class (I work at a school). For example last
    years graduating class of 2006.
    I have a statement in the XSL sheet that limits the shown
    data to only that class year
    <xsl:for-each
    select="school[class_of=&apos;2006&apos;]">
    I would like to replace that 2006 above with a php statment
    such as $classyear since on that page the data is to display the
    variable is already present, but I cannot get it to work. I have
    tried to place php in the XSL and also to change the extention etc
    and they all produce errors. I am assuming that XSL just can't use
    variables in it?
    Any help would be greatly appreciated. I would hate to have
    to duplicate that one XSL sheet for every class year.
    thanks
    chris

    David,
    thank you so much so far for you help, it does sounds like we
    are talking about the same thing. I think I am getting close.
    I do want to pass the value when the XSL sheet is embedded.
    I tried that and it seemed to not work, says the variable is
    not found (I am using the dreamweaver built in transform).
    I am just getting into the more complex XML stuff so I
    apologize for my lack of knowledege.
    I have pasted some of the code below, any idea what I am
    doing wrong?
    the page where it is embedded is
    http://www.nmhschool.org/news/test11.php
    php doc with the embed and include
    <?php
    $mm_xsl = new MM_XSLTransform();
    $mm_xsl->setXML("test11.xml");
    $mm_xsl->setXSL("test11.xsl");
    $mm_xsl->addParameter("yearXX", "2006");
    echo $mm_xsl->Transform();
    ?>
    http://www.nmhschool.org/news/test11.xsl
    is the XSL
    <xsl:for-each
    select="Report/GroupHeader2/GroupHeader2_1[q1.CnPrAl_Class_of =
    $yearXX]">
    <table width="100%" border="1" cellspacing="1"
    cellpadding="1">
    <tr> blah blah blah........
    http://www.nmhschool.org/news/test11.xml
    is the XML data

  • PHP variable scope bug in CT

    I have a page where I declare PHP variables which are then
    used inside an include file.
    When I try to edit the page in Contribute, I get a notice of
    "Variable undefined" in the include.
    This do work in Dreamweaver and it did work in Contribute in
    other projetcs I have done.
    Any suggestions?

    Hi Dont know if your still getting notifications on this but...
    Did you ever find an answer as I am having the same issue.
    I have tracked down why its not working but don't know how to stop it.
    In Dreamweaver it keeps the php include reference as code when it saves the file, where as Contribute seems to process the include and dump the output back to the page.
    This means that any common includes like headers and footers are no-longer included dynamically when the page loads as Contribute has embeded them when it created the page.
    This alsos mean if you have included a php file with common functions that you may use on your site this will never appear and any variables you declare wont exist.
    How rubbish is that!?
    If anyone can help with this issue it will be greatly appreciated.
    I'm hoping there is some simple Contribute comment I can put in to say "dont process this code - leave it alone!"
    Thanks

  • PHP Variable Capitalize

    Okay so I have a php variable, and I set it to "Home", then when I call it though I get a result of "home". How do I make the variable retain the capital H?

    MurraySummers wrote:
    No - actually we were both incorrect. The only condition is "isset($_GET['page']", and if true, the first option is executed and a lower-case value is returned; if false, the second.
    I think that's wrong. If the first condition was being executed then the OP would have the result "Home" returned NOT "home"
    He/She has obvioulsy got a link set up like .php?$foo=Home
    As the first condition IS met as you say and is correct the second condition is executed (met) as I say, the third is only returned if 1 and 2 are not met.
    Oh ok I see what your saying. Cross wires AGAIN we both agree that the ?> is being met
    I think half this stuff is a battle with the correct terminology aint it lol
    So this is being met:
    $page = (isset($_GET['page'])
    This is being return as the above is met
    ? strtolower($_GET['page'])
    This never gets a look in
    : 'Home');
    If you view the conditions as ? strtolower($_GET['page']) : 'Home');
    Then youre right I'm wrong.
    This is not a condition which I was taking into consideration.
    $page = (isset($_GET['page'])

  • Accessing PHP variables (especially _SESSION)

    Hi,
    since CaioToOn! suggested here that I should use $_SESSION and I need to do this anyway, I spent the last 1+ hours trying to figure out how to do that. Sadly, I could not really figure it out except that there seems to be an issue with the session ID and that it has to be passed along to the swf file.
    Can somebody please tell me how to read/write from/to PHP variables (not $_GET)?
    P.S.: Here a simple example code (test.php and then the testintro.fla AS code):
    <? session_start();
    $_SESSION["intro"] = 0;     // has the intro been played?
    ...     // code for including the swf
    ?>
    if(intro == 0)
         myclip.gotoAndPlay(2);   // play intro
         intro = 1;
    else
    { myclip.gotoAndPlay(24); }     // skip the intro and go straight to the end

    none of those reasons would require php to embed a swf.
    normally, with flash, you could use a session variable to pass data from html to the swf.  you set your session variable's data with a html form or something similar and then use flashvars to pass that info to your embedded swf(s).
    you can also pass html data to an embedded swf using javascript and the externalinterface class.

  • Is there a PHP variable that will fetch the TITLE of the file?

    I learned (thanks to David Powers) that you can use $_SERVER['PHP_SELF'] to refer to your current URL, which is useful in situations like putting a "Share on Facebook" button on your page.
    However, some of these social networking sites allow you to also put the Article Title in the same button, so I was wondering if there was a PHP variable I can use for *that*. This way, by specifying the title of the article in the aptly-named title tag of the page, I can put those "submit this page to" links as includes that don't need to be specifically-edited for each page.

    Create a variable for the title and use it in both places.
    <?php
    $title = 'Things you always wanted to know about...';
    ?>
    <title><?php echo $title; ?></title>
    // later on
    <?php echo $title; ?>
    Alternatively, if your page content is generated dynamically, you can store the title in the database.
    Another technique would be to base the title on the page name.
    $page = basename($_SERVER['SCRIPT_FILENAME'], '.php');
    $title = ucwords(str_replace('_', ' ', $page));
    That would store "About Us" in $title if the page is called about_us.php.

  • JDBC Bound variable limit for sql queries

    I need to know if there is a limit on the no of variables that can be bound using a prepared Statement ?
    And somebody insisted that the bound variable limit is only when the variables belong to certain types of operators eg:
    A query like this :
    select * from table where column in(?, ?, ?.....)
    cannot have more than 1000 variables but
    a query like this
    select * from table where column in(?, ?, ?) and column1=? and column2=? and column3=? ... and so on ..... can have more than 1000 bound variables ?
    Also is this dependent on the driver or inherent to Oracle versions ?

    Per the Oracle documentation:
    Stage 5: Bind Any Variables At this point, Oracle knows the meaning of the SQL
    statement but still does not have enough information to run the statement. Oracle
    needs values for any variables listed in the statement; in the example, Oracle needs a
    value for department_id. The process of obtaining these values is called binding
    variables.
    A program must specify the location (memory address) where the value can be found.
    End users of applications may be unaware that they are specifying bind variables,
    because the Oracle utility can simply prompt them for a new value.
    Because you specify the location (binding by reference), you need not rebind the
    variable before reexecution. You can change its value and Oracle looks up the value on
    each execution, using the memory address.
    bind variables are stored in the PGA if running a dedicated server. Shared servers use the SGA. The PGA is fixed and OS specific.

  • Search/Replace for/with php variable name

    Hi all.
    I have just updated from Dreamweaver 5 to 5.5 and now I am missing a very handy functionality.
    What I want to do is to replace all occurences of $a with $b.
    In Dreamweaver 5 that was very easy by using "Find and replace":
    Find in: All open documents
    Search: Sourcecode
    Find: $a
    Replace: $b
    Active options: Match case and Match whole word !!!!
    Now in Dreamweaver 5.5 the option "Match whole word" is automatically disabled as soon as I enter a $ (dollar) in the search field.
    I assume this has something to do with regular expressions but I do NOT check the option "Regular expression" in the search and replace dialog.
    Is this a bug?
    What are my options now.
    If I don't have the possibility to to tick "Match whole word" my search does also replace all occurrences of $abc and $answer etc. with $b.
    Thank you for your help

    samet2011 wrote:
    I have Dreamweaver 5 and 5.5 running parallel on my computer.
    I can confirm that the way I described and used to use is working on Dreamweaver 5.
    I was the person who informed Murray that Dreamweaver CS5 and CS5.5 both behave the same way. I have just checked as far back as CS3, and it also disables "Match whole word" when you enter a dollar sign in the Find field of the Find and Replace dialog box. In fact, that option is disabled whenever you enter any nonalphanumeric character (except an underscore) in that field. It's not limited to dollar signs.
    Why it's not disabled in your version of CS5 is a mystery.
    However, to solve your problem, you don't need either a regex or "Match whole word". Simply type the name of your PHP variable followed by a space into the Find field. Also add a space after the name of the variable you're using as the replacement.
    What "Match whole word" does under the hood is to use a regular expression to find a word break. As long as you leave a space between your variables and any following code, simply adding the space to your search will do the trick.
    However, if you have cases where a variable is followed by a comma, closing parenthesis, or some other character, you will need to use the following regex:
    Find: \$variable_name\b
    Replace: $new_name
    The \$ looks for a dollar sign. The variable_name matches the literal text of the variable name (replace it with the actual text you're looking for). The \b matches a word break in exactly the same way as "Match whole word".
    In the Replace field, $new_name is the literal name of the new variable.

  • Javascript change property of PHP variable according to date in list menu selection

    I'm creating a booking form which selects prices and dates from a Mysql databse according to the code transported in the URL.
    I have successfully got the form to display dates for this year and next year in a drop down menu/list form item.
    However, I would like to change the price according to what year the selected date falls in.
    The key variable that needs to change is this $coursefee
    If a date in 2009 date (e.g. 2009-10-12) is selected the varibiable $coursefee would change to be
    <?php $coursefee=$row_rs_course['price09'];?>
    And if a date like 2010-10-12 is selected the varibiable $coursefee would change to be
    <?php $coursefee=$row_rs_course['price10'];?>
    To complicate matters the menu is dyamically populated too:
    <select name="dates" class="course" id="dates">
    <?php
    do { 
    ?>
    <?php
    $date1 = strftime("%d %b",strtotime($row_rs_dates['start_date']));                       
    $date2 = strftime("%d %b %Y",strtotime($row_rs_dates['finish-date']));
    ?>
    <option value="<?php echo($date1." - ".$date2); ?>"><?php echo($date1." - ".$date2);?></option>
    } while ($row_rs_dates = mysql_fetch_assoc($rs_dates));
      $rows = mysql_num_rows($rs_dates);
    if($rows > 0) {
    mysql_data_seek($rs_dates, 0);
    $row_rs_dates = mysql_fetch_assoc($rs_dates);
    </select>
    I'm pretty sure the answer lies in the murky world of javascript but unfortunately I haven't the first clue about javascript.
    Can anyone help me with this?
    Cheers
    Dave

    Thanks David,
    I can see that would work and I'd have no problems doing that but wouldn't that mean that all the oher data the user had fillled in would dissapear?
    There are too many fields I think to transfer everything in the URL and the date selection field is way down the form and I think it would seem pretty odd to have it before name address etc. That's why I thought a javascript solution would be more suitable as it needn't rely on a page refresh.
    Cheers
    Dave

  • AC_FL_RunContent and php variable from recordset

    Hi, can anybody point me to a resource on how to grab the
    name of the .swf file from my db and pass it to the active content
    javascript?
    If I just replace the the movie name with a php echo that
    grabs the file name from the db there is no playback.
    TIA
    -Frank

    Should work fine.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "ronin701" <[email protected]> wrote in
    message
    news:gb9gll$lck$[email protected]..
    > I'll have to strip the extension after I pull it out of
    the record set,
    > assign
    > that value to a variable and echo that in the js where
    there is no
    > extension
    > and use the standard echo in the areas where it need the
    extension, very
    > good,
    > thanks for pointing me in the right direction.
    >
    > -Frank
    >
    http://www.roninwerks.com
    >

  • Parsing php variable to jnlp

    Im having trouble using $_GET[id]
    my script opens an iframe at <iframe src=\"http://****.com.au/uploader/fileuploader/fileuploader_jnlp.php?id=".$_SESSION[user_id]."\" width=0 height=0 name=\"internal\"></iframe>";
    my jnlp file looks like:
    <?php header('Content-type: application/x-java-jnlp-file'); ?>
    <jnlp spec="1.0+" codebase="http://www.****.com.au/uploader/fileuploader" href="fileuploader_jnlp.php">
    <information>
    <title>Uploader</title>
    <vendor>Me</vendor>
    <homepage href="index.html" />
    <description></description>
    </information>
    <resources>
    <j2se version="1.4"/>
    <jar href="fileuploader.jar" main="true" />
    <jar href="JimiProClasses.jar" />
    </resources>
    <application-desc main-class="fileuploader.FileUploader">
    <argument>http://www.****.com.au/uploader/fileuploader/upload.php</argument>
    <argument><?php echo $_GET[id]; ?>/</argument>
    <!-- <argument>100000</argument> -->
    <!-- <argument>thomas:test</argument> -->
    </application>
    <security>
    <all-permissions/>
    </security>
    </jnlp>
    but its not parsing the variable
    I have tested for the variable using
    <?php
    echo $_GET[id];
    ?> on a standard php script and all works fine
    I can even hard code the variable and it works
    <?php header('Content-type: application/x-java-jnlp-file'); ?>
    <?php $bob =367; ?>
    <jnlp spec="1.0+" codebase="http://www.****.com.au/uploader/fileuploader" href="fileuploader_jnlp.php">
    <information>
    <title>Uploader</title>
    <vendor>Me</vendor>
    <homepage href="index.html" />
    <description></description>
    </information>
    <resources>
    <j2se version="1.4"/>
    <jar href="fileuploader.jar" main="true" />
    <jar href="JimiProClasses.jar" />
    </resources>
    <application-desc main-class="fileuploader.FileUploader">
    <argument>http://www.****.com.au/uploader/fileuploader/upload.php</argument>
    <argument><?php echo $bob; ?>/</argument>
    <!-- <argument>100000</argument> -->
    <!-- <argument>thomas:test</argument> -->
    </application>
    <security>
    <all-permissions/>
    </security>
    </jnlp>
    Can someone please tell me where I am going wrong

    hi,
    I'm gonna have to do exactly the same thing as you...
    I haven't look at it yet, but I'd apreciate if you publish the working PHP script you fixed (if you managed that is ;-)).
    thanx a lot.
    Patrice.

  • Php variable and xml processing

    Hello there,
    I have a problem that is driving me crazy! I have a php file
    which creates an xml string from a sql query. The problem is that I
    need to use a variable from an swf file to create the query. All
    this should happen when i click a button on the swf page. The xml
    file is created no problem but the variable is not used. i am well
    able to use these POST variables in other php files. As you can see
    the php file is called twice in the action script. Is this the
    problem. The line: xmlData.load("get_max_sess.php"); is fine. I
    stuck the other on one in - loadVariablesNum ("get_max_sess.php",
    0, "POST"); after the fact and this doesn't work. is there a
    confilct in calling the same file twice? Is the sendAndLoad
    function an option? Also included below is my php file.
    Thanks so much. I really hope you can help me!
    ****************************************************ACTION
    SCRIPT**********************************
    call_btn.onRelease=function(){
    function processXMLData(success)
    {loadVariablesNum ("get_max_sess.php", 0, "POST");
    if (success)
    var rootNode=this.firstChild;
    var contentNode=findNode(rootNode, "guit_vol");
    guitVol=getValue(contentNode);
    var authorNode=findNode(rootNode, "guit_pan");
    guitPan=getValue(authorNode);
    var contentNode=findNode(rootNode, "guit_vis");
    visGuit=getValue(contentNode);
    _root.guitVis.gotoAndStop(visGuit);
    //assign xml info to musician objects
    _root.guitObj.drag._y=guitVol;
    _root.guitObj.drag._x=guitPan*2;
    else
    content="Today's news is not found";
    function getValue(node)
    if (node && node.firstChild)
    return node.firstChild.nodeValue;
    return "";
    function findNode(node, nodeName)
    if (node.nodeName==nodeName)
    return node;
    for (var i=0; node.childNodes &&
    i<node.childNodes.length; i++)
    var foundNode=findNode(node.childNodes
    , nodeName);
    if (foundNode!=null)
    return foundNode;
    return null;
    var xmlData=new XML();
    xmlData.ignoreWhite=true;
    xmlData.onLoad=processXMLData;//when xml data loads the
    function at the top executes
    xmlData.load("get_max_sess.php"); //loads the xml data from
    this location
    stop();
    ****************************************************PHP
    FILE**********************************
    <?php
    $user_id=$_POST['user_id'];
    // query database for records
    $connection = mysql_connect('localhost', 'm27849_martin',
    'Geraldine1') or die ("Unable
    to connect!");
    mysql_select_db('m27849_liveroom') or die ("Unable to select
    database!");
    $query = "
    SELECT a.guit_sess_id, a.guit_vol, a.guit_pan, a.guit_vis,
    b.bass_sess_id, b.bass_vol, b.bass_pan, b.bass_vis, c.drum_sess_id,
    c.drum_vol, c.drum_pan, c.drum_vis
    FROM guit_info a, bass_info b, drum_info c, users_sessions d
    WHERE d.session_id =(SELECT max(a.session_id) FROM
    users_sessions a WHERE a.user_id = '$user_id')
    AND a.guit_sess_id = d.session_id
    AND b.bass_sess_id =a.guit_sess_id
    AND c.drum_sess_id = b.bass_sess_id
    //(SELECT userid from auth WHERE username ='martin')
    //here a variable could be inserted to call the relevant row
    (session)
    $result = mysql_query($query) or die ("Error in query:
    $query. " .
    mysql_error());
    $doc = new DomDocument('1.0');
    //The first element we create in the XML document is known as
    the root element. Each XML document must have 1, and only 1, root
    element. In this example I have called it 'root', but you can use
    whatever name you like (such as the name of the PHP script which is
    executing). Note that you have to create the element and insert it
    into the document with two functions.
    // create root node
    while($row = mysql_fetch_assoc($result)) {
    $user = $doc->createElement('session');
    $user = $doc->appendChild($user);
    foreach ($row as $fieldname => $fieldvalue) {
    //Note that here I create a new element for the field and
    then insert it as a child to the current database row, as
    identified in $occ.
    $child = $doc->createElement($fieldname);
    $child = $user->appendChild($child);
    //Now I must add the field value as a text node, then insert
    it as a child element to the current field node, as identified in
    $child.
    $value = $doc->createTextNode($fieldvalue);
    $value = $child->appendChild($value);
    //These loops do not terminate until they have processed
    every column of every row which has been retrieved from the
    database.
    } // foreach
    } // while
    echo $doc->saveXML();
    //echo $doc->saveXML($child);
    mysql_close($connection);
    //from:
    http://www.tonymarston.net/php-mysql/dom.html
    ?>

    Hi there,
    I cracked it after a lot of to-ing and fro-ing! Apparently
    you CAN send a variable and then load xml. Thanks so much for your
    advice and interest. I am much obliged.
    Marty Party
    Check out my code below....
    user_id=147;
    submit_button.onRelease=function(){
    function processXMLData(success)
    if(success)
    {_root.status_id="Success"
    var rootNode=this.firstChild;
    var contentNode=findNode(rootNode, "guit_vol");
    guitVol=getValue(contentNode);
    var authorNode=findNode(rootNode, "guit_pan");
    guitPan=getValue(authorNode);
    var contentNode=findNode(rootNode, "guit_vis");
    visGuit=getValue(contentNode);
    status_id=visGuit;
    etc....
    else
    content="Today's news is not found";
    function getValue(node)
    if (node && node.firstChild)
    return node.firstChild.nodeValue;
    return "";
    function findNode(node, nodeName)
    if (node.nodeName==nodeName)
    return node;
    for (var i=0; node.childNodes &&
    i<node.childNodes.length; i++)
    var foundNode=findNode(node.childNodes
    , nodeName);
    if (foundNode!=null)
    return foundNode;
    return null;
    var xmlData=new XML();
    xmlData.ignoreWhite=true;
    xmlData.onLoad=processXMLData;
    //xmlData.load("get_max_sess.php");
    var id:LoadVars = new LoadVars();
    id.user_id = user_id;
    //id.username = _root.username;
    id.sendAndLoad("get_max_sess.php", xmlData, "POST");
    Basic idea from
    http://www.permadi.com/tutorial/flashXMLNewsExample/index.html
    - Thank you!!

  • Using a PHP variable

    I have :
    <?php
    //--------------TESTING VARIABLES------------
    $test_String = $row_Latest['Map_String_Mob'];
    print($test_String);
    ?>
    I then try :
    <a href=" <?php echo $test_String; ?>"
    target="_blank">Link</a>
    This causing an error when it opens the new page.
    How do I use the PHP $test_String in the HTML section. ie
    what is the
    correct syntax.
    Dim new_String
    new_String = <?php echo $test_String; ?>"
    <a href=" new_String" target="_blank">Link</a>

    SteveW wrote:
    > I have :
    >
    > <?php
    > //--------------TESTING VARIABLES------------
    >
    > $test_String = $row_Latest['Map_String_Mob'];
    >
    > print($test_String);
    >
    > ?>
    >
    > I then try :
    >
    > <a href=" <?php echo $test_String; ?>"
    target="_blank">Link</a>
    >
    > This causing an error when it opens the new page.
    >
    > How do I use the PHP $test_String in the HTML section.
    ie what is the
    > correct syntax.
    >
    >
    > Dim new_String
    >
    > new_String = <?php echo $test_String; ?>"
    >
    > <a href=" new_String"
    target="_blank">Link</a>
    >
    >
    >
    Hi Steve:
    The syntax for the code in the body should be:
    <?php echo($test_String); ?>
    enthusiastically,
    mark haynes
    WebAssist.com

Maybe you are looking for

  • Itunes is not syncing all songs in playlists to iphone

    i have multiple playlists with 70+ songs in them, however after phone is synced, only between 15-22 songs are in the corresponding playlists on my iphone. just need to find out if anyone is having the same problem since updating to itunes 10.5, and h

  • Workflow-hr issue

    Hi experts, I am new to workflow.i recived one ticket for workflow.Delete open tasks from unversal worklist for employee XXXXX. what i need to do here.. Please help me on this.. Thanks in advance..

  • Flash Player 11.3 Upgrade Notification - Finally!

    Hi All, I was finally prompted to update - yesterday morning, i.e. it took 8-9 days to get to my machine - and so I did! keeping same "automatic/silent" update option. I noticed then that the FF Plugin was updating first? not the IE ActiveX Control -

  • Where can I find the create slideshow in fireworks CS 6

    in CS5 you could find it under the command tab but now it is gone

  • Simple SSH Access-List Question

    I am enabling SSH access for all of our Cisco devices and want to restrict access to just the following ip addresses: 192.168.200.1-192.168.200.50.  I forgot the exact access-list configuration to accomplish this.  The subnet is /24 and I don't want