User Profile

Collapse

Profile Sidebar

Collapse
nine72
nine72
Last Activity: Jun 11 '14, 12:46 PM
Joined: Oct 4 '06
Location: Carrollton Tx
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I just tried this and i cant believe that it was that easy. I spent a week doing everything I could think of including regx for this. Thank you so much, now maybe i can get this project off my list!

    I guess my pic says it all for me on this one lol.
    See more | Go to post

    Leave a comment:


  • How to parse and block of text with no common delimiter?

    I have a single data block (encrypted) that is being generated (see example block below). My issue is that there is NO delimiter in the block that I can use as a landmark to break this into only the portions that I need.

    Looking at the sample at the bottom of this lets say I need to count from the left 18 places and then pull out the characters 19 to 51 and set as a value. Then move two more places to 53 and pull out 53 to 112 and...
    See more | Go to post

  • Good point, sorry I was not following along well...The onchange is a good suguestion. I will have to run it by the person that I am working with. They have been adamant that it has to format when being entered...I think that it is because there will be several of these fields (90 or so) and would like to take away the need to input a "." for speed.

    I will give it a try and show resutls see if they are game. Thanks for the...
    See more | Go to post

    Leave a comment:


  • I am not sure for the sake of the form if that would be important...
    I think from a user stand point it might be if I am following correctly.

    exp.

    user enters 1.50
    user relizes that it should have been 1.90
    user clicks in field and enters 190 field shows 1501.90 (since the orginal value is not cleared when they enter the new amount.
    using the onchange (again if I am understanding) the user...
    See more | Go to post

    Leave a comment:


  • I have tried to add the on change to the text field properties on the form, it nevers seams to fire when I click in the text box. The cursor sits and flashes behind the last digit...if you have a way to make that one work I am all ears.

    And thanks for taking a look at this.
    See more | Go to post

    Leave a comment:


  • I am thinking that since it floats a decimal at 2 places then if there are 3 digits it should show 2.50. Therefore, if you back space and remove the last digit the other two should justify to the right and drop past the decimal and leave a result. This can be skipped I think it is more an issue at this point of not being able to highlight and type over what is there with out having to hit the delete key.

    I have been attempting to...
    See more | Go to post

    Leave a comment:


  • nine72
    started a topic Auto Currency problem that I can' figure out...

    Auto Currency problem that I can' figure out...

    Hi,

    I have a script to format a text filed for currency. In general it works fine with 2 exceptions.

    1) If you are in the field and enter the wrong amount when you back space the float does not change...
    EXP:
    you enter 1.50
    hitting back space makes it 1.5
    it should become .15

    2) if you need to go back and change the entire amount, you must highlight the value and hit the delete...
    See more | Go to post

  • nine72
    replied to Parsing XML String (not a Doc) in PHP...Help!
    in PHP
    ok, so after hammering on this for a week now, I am still not getting it to work...

    Anyone have any furhter thoughts? If not I guess we can close this out and I will simply let my deadline go...

    Thanks for the input.
    See more | Go to post

    Leave a comment:


  • nine72
    replied to Create a drop down from an Oracle DB table...
    in PHP
    Ok, I think I have it, and we can close this one....

    Thanks again....
    See more | Go to post

    Leave a comment:


  • nine72
    replied to Create a drop down from an Oracle DB table...
    in PHP
    Sweet Thanks Will check it out and see what I can do with it...
    You guys here at Bytes are the best.
    See more | Go to post

    Leave a comment:


  • nine72
    started a topic Create a drop down from an Oracle DB table...
    in PHP

    Create a drop down from an Oracle DB table...

    Ok, I have never worked with oracle period, I have been asked to create a single php page that will connect read 2 colums from a table and generated a drop down...thats it simple, yet I can not be allowed for the development to connect to said DB....yippie...

    If anyone can provide a link to a toturial, scripting blog anything (yes have spent the last 3 days at Oracle's site going over what they have...and has given me a headach...just...
    See more | Go to post

  • nine72
    replied to Parsing XML String (not a Doc) in PHP...Help!
    in PHP
    I have confirmed that the CURL session is generateing making the connection and sending a well formatted XML to the middleware app.

    In the parse routine where I have

    1. $xmlreaderror = true;
    2. echo "Sorry Man Nothing There To Do";

    If I change it to…

    [php]
    $xmlreaderror = false;
    echo "<pre>";
    print_r ($xmldata);...
    See more | Go to post

    Leave a comment:


  • nine72
    replied to Parsing XML String (not a Doc) in PHP...Help!
    in PHP
    Ok, they have fixed the tag problems that were there.

    So I am up to trying to read the string that is coming in.
    At this point I am getting my own error back which is good as it means that I am getting the includes in there and the functions are working. The error however, is telling me that there is nothing for the function to work with…when I attempt a print of what I am expecting it is blank.

    So yeah,...
    See more | Go to post

    Leave a comment:


  • nine72
    replied to Parsing XML String (not a Doc) in PHP...Help!
    in PHP
    Thank you for the suggestion!

    I did as directed and then I noticed something in the return string. The person that has written the part I talk to is sending me miss-matched tags and misspelled tags in places…i.e. <state>MD</zip> or <name>FOO</nema>

    The error that is being thrown I now find is at the top of my xml generation page where I am building my xml string. The parsing function is calling...
    See more | Go to post

    Leave a comment:


  • nine72
    replied to Parsing XML String (not a Doc) in PHP...Help!
    in PHP
    Sorry about that, did not mean to have the $xmlResponse !=”” in there. I must have left that over in my state of delirium, as well as most of my comments….haha

    The issue is that in my testing environment, where I have the xml return string coded between the “ “

    1. $xmlResponse= "
    2. //..... xml response data here....
    3. ";


    Everything works fine…
    ...
    See more | Go to post

    Leave a comment:


  • nine72
    started a topic Parsing XML String (not a Doc) in PHP...Help!
    in PHP

    Parsing XML String (not a Doc) in PHP...Help!

    Ok, so I have figured out how to parse an custom returned XML doc (actually a string that I made into a doc for testing).

    At this point I am attempting to integrate my parse routine into my main code and I am having an issue getting it to mesh, and am looking for a little help in how to 1) combine the two and 2) how to catch the incoming xml string.

    FYI the string is sent to me as a return message to an xml message...
    See more | Go to post

  • Not new to xml generating but am new to really complex parsing...help.

    Ok, I am at a complete loss on this and have finally come to the XML Parsing Gods (and perhaps a PHP minor deity) for guidance…

    I will try my best to describe what I have going on…

    1) I have 15 form pages, well over 500 potential fields, which are written in PHP. While most pages are one time entry forms, there are 5 that can be “recycled” as many times as needed. An example would be the Contacts...
    See more | Go to post

  • nine72
    replied to Looping Rows from MySql to PHP...
    in PHP
    actually I got it figured out....

    [PHP]
    $query = ($xmlCtVarSet);
    $result = mysql_query($qu ery);
    if(!$result){
    die(mysql_error ());
    }

    $num = mysql_num_rows( $result);

    $i=0;
    while ($i < $num) {

    $rFirstName = mysql_result($r esult,$i,"rFirs tName");
    $rMiddleI = mysql_result($r esult,$i,"rMidd leI");
    ...
    See more | Go to post

    Leave a comment:


  • nine72
    replied to I can't store in database from my form
    in PHP
    This works for me each time so have stuck with it....


    ADD TO YOUR FORM

    Code:
    <?PHP
    	// before your session_start()
    	require_once('Connections/connect_to_your_db.php');
    	require_once('db_insert/insert_form_data.php');
    ?>
    
    <form method="POST" name="name_of_form" action="<?php echo $editFormAction; ?>">
    <input type="hidden"
    ...
    See more | Go to post

    Leave a comment:


  • nine72
    started a topic Looping Rows from MySql to PHP...
    in PHP

    Looping Rows from MySql to PHP...

    Hi, first I want to say thanks for the help I received here over a year ago with a perplexing issue that I had. The advise was fantastic and helped a lot.

    Today I have another issues that I can not seam to get past or figure out and hope that the community here will be able to assist me in getting past this next mile stone in my current project.

    Overview…

    8 forms all data being temp store in a mysql...
    See more | Go to post
No activity results to display
Show More
Working...