PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

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 /?


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.

Comment on this Question and Answer >>>

ASK A QUESTION

More strings PHP Questions

How can I remove trailing space from a string?

How do I make sure a string is a certain length?

How do I break email address into username and hostname?

How do I convert newlines to HTML line break tags?

How do I find the position of a letter in a string in PHP?



Custom Search