Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need Help About Save Data

    Hy All,
    PHP Code:
    <?
    $ss1 
    $_REQUEST['ss1'];
    $sss ">".$ss1."<";
    $file =dirname(__FILE__)."/data.txt";
    $Saved_File fopen($file'a');
    fwrite($Saved_File"$sss\n");
    fclose($Saved_File);
    ?>
    By This Code I Can Easily Save Requested Data In A Text File.
    Now If Requested Data Like That >> aa;bb;cc << And If I Want To Save Them By Serial.I mean,

    aa
    bb
    cc

    Like That.Then What I Have To Do???
    pls help me

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,471
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    PHP Code:

    <?
    $ss1 
    $_REQUEST['ss1'];
    $items=explode(";",$ss1);
    //$sss = ">".$ss1."<";
    $file =dirname(__FILE__)."/data.txt";
    $Saved_File fopen($file'a');
    foreach(
    $items as $value){
    fwrite($Saved_File"$value\n");
    }
    fclose($Saved_File);
    ?>

  • #3
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks a lot bro :x


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •