1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Copying MySQL databases into CSV Format

Discussion in 'MySQL' started by Weirfire, May 16, 2005.

  1. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #41
    It's really bizarre what it's doing now! It's creating a carriage return on only the first /r but the second /r it just displays the square!

    It's not looking like it's going to be one of my good days lol.
     
    Weirfire, May 18, 2005 IP
  2. palespyder

    palespyder Psycho Ninja

    Messages:
    1,254
    Likes Received:
    98
    Best Answers:
    0
    Trophy Points:
    168
    #42
    When I am doing something that requires newlines I always do \r\n so if I needed two I would do \r\n\r\n and that seems to work for me, not sure if it will help you or not.
     
    palespyder, May 18, 2005 IP
    exam likes this.
  3. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #43
    Thanks PS. Worked perfectly. How long have you been PHP coding for? I did Java for 3 years at uni as well as C and C++ and I'm trying to convert my knowledge into PHP but there's a lot of little tricks you can do with PHP that I've still to learn.
     
    Weirfire, May 18, 2005 IP
  4. palespyder

    palespyder Psycho Ninja

    Messages:
    1,254
    Likes Received:
    98
    Best Answers:
    0
    Trophy Points:
    168
    #44
    I have been doing PHP professionally (day job) for 1 1/2 years, as a hobby for close to 3 I think. The little tricks come as you program more and more. The first language I learned was C, then went to VBScript for ASP pages, then I found PHP and have never looked back ;) I still do some C to keep up on it.

    I am told Java and PHP are "alot" alike, but, I have never even looked at Java.
     
    palespyder, May 18, 2005 IP
    Weirfire likes this.
  5. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #45
    Just to throw in my $0.02 at the end of this conversation, \r\n (in that order) is the linebreak char for windows, \n is used (alone) on *nix and \r is used on Mac.
     
    exam, May 18, 2005 IP
  6. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #46
    lol do you not like Unix?

    Thanks for the $0.02 Definitely worth knowing. :)
     
    Weirfire, May 19, 2005 IP