GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php/mysql problem(question) (https://gfy.com/showthread.php?t=434557)

alex79 02-21-2005 02:33 AM

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?

Clarion 02-21-2005 03:57 AM

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");
Lastly, if that doesn't work, make sure you're using the standard ascii ' symbol and not some strange variation like word puts in...

alex79 02-21-2005 11:30 AM

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?

borked 02-21-2005 12:23 PM

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.

Fuckin Bill 02-21-2005 12:32 PM

Sounds like a character set problem either in the page/server or your browser.


All times are GMT -7. The time now is 10:44 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123