Thread: quotes in php

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    24
    Rep Power
    0
    Hi,

    I have been learning php/mysql over the last few days and ran into a little problem when tryin to generate links. How do you insert quotes into print tags. I tried just typing them in but i keep getting parsing errors. What method should I use?

    Thanks,

    CMatrix
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Alkmaar, The Netherlands
    Posts
    123
    Rep Power
    15
    You should use the escape character like in C or C++. To insert a double quote use ", to insert a new-line use n, etc.

    ------------------
    Good luck,
    Bas

    ------------------
    E-mail me at: b.vandermeijden@pecoma.nl
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    44
    Rep Power
    15
    if you want quotes to print out, then start out by printing apostraphes:

    print ('"')

    should give you " when you print it out. Use the opposite if you want to print an apostrophe.



    ------------------

IMN logo majestic logo threadwatch logo seochat tools logo