Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

/ at the end of the string
(1 viewing) (1) Guest
All your queries regarding
PHP Installation,
Binding Apache-PHP-MySQL,
and tonnes more... will be solved in this forum
  • Page:
  • 1
TOPIC:

/ at the end of the string

/ at the end of the string 1 year, 4 months ago #456

  • manav
  • OFFLINE
  • Senior Boarder
  • Posts: 51
  • Karma: 0
I retrieve data from a Mysql database and insert it into a textfield form. The data that I retrieve have a / at the end of the string. The data in the database does not have this / in the data. How do I remove this /?

Re: / at the end of the string 1 year, 4 months ago #466

  • abott
  • OFFLINE
  • Junior Boarder
  • Posts: 25
  • Karma: 0
This is because the data is escaped, in order to remove the escape characters you need to place a call to stripslashes before you actually output the data to the screen.
  • Page:
  • 1
Time to create page: 1.15 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download