|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
Use DBI's quote() function. See perldoc DBI for more.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Perl and escape code (addslashes) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|