![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jun 2002
Location: france
Posts: 996
|
php/mysql problem(question)
i have ' character in my database, but when i make a select and display the content with echo() the ' character is auto replace with ? character..
what i have do to stop this auto replace? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jan 2005
Location: Ontario, OR
Posts: 148
|
That's kinda bizarre...does your page have a character set selected?
[HTML]<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />[/HTML] If that's not it, try inserting it into the database with the function addslashes: Code:
addslashes("This is the string I'm trying to input");
__________________
Structure Northwest :: the cure for the common code :: AIM: Asatruel | Yahoo!: Asatruel | ICQ: 111-638-053 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jun 2002
Location: france
Posts: 996
|
i don't have that HTML code on my pages.. and when i've entered the text to the database i used addslashes() function.. now when i select the text from database, i use stripslashes() and echo($text) and instead ' character i get ?
anybody else know what can be? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Totally Borked
Industry Role:
Join Date: Feb 2005
Posts: 6,284
|
What browser are you using and what character(s) is displaying as ?
? Have you tried converting symbols to their html counterpart before entering them in the database using htmlentities() ? For eg, the Euro symbol, depending on the encoding text will displaying incorrectly on Firefox, but will do fine when 'encoded' using htmlentities() for storing.
__________________
![]() For coding work - hit me up on andy // borkedcoder // com (consider figuring out the email as test #1) All models are wrong, but some are useful. George E.P. Box. p202 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Feb 2003
Posts: 1,020
|
Sounds like a character set problem either in the page/server or your browser.
|
![]() |
![]() ![]() ![]() ![]() ![]() |