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

    Join Date
    Feb 2000
    Posts
    1
    Rep Power
    0
    Hello,

    I've been working on a script to store large amount of text in a MySQL database under perl. I'm using the DBI module.

    Under PHP3 there a function called addslashes for adding escapecode.

    How does this work with perl and DBI ?

    Take care!
    JanT
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 1999
    Posts
    33
    Rep Power
    16
    Do you really need to escape these items?

    How are you going about it so far? If you place the whole line that you want to add to the database in a variable it shouldn't need escaping?!

    Show us what you have got so far.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    5
    Rep Power
    0
    Use DBI's quote() function. See perldoc DBI for more.

IMN logo majestic logo threadwatch logo seochat tools logo