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 do I find the length of a string in PHP?

What is the usage of { } in string handling in php?

How do I escape a string with slashes?

What is the difference between print and echo?

How do I display newline characters on a webpage?



Custom Search