![]() |
Slashes in names
Can someone please tell me how I make this line:
PHP Code:
[disable]Sessions identifys them as Boofo\'s Babe[/disable] |
huh?
i think it looks perfect as it is here... |
I don't see the problem either.
|
For some reason it parsed it out. Here's how it looks with a space in it (Hopefully it won't parse it with a space). Take the space out between the o and the \ and that's how it looks.
Sessions identifys them as Boofo \'s Babe |
ahh, ofcourse it does, because you use addslashes function which add's slashes before ' and "
change it into that would help you: PHP Code:
|
Thank you, Stefan. :) I was just using the original code. Why would someone use addslashes instead of specialcharacters then? Or do you have to use addslashes for the db? I have found a few things that don't work well with ' in names on my board. Is there a global fix for that? Just curious more than anything. :)
|
there are differences
specialcharacters changes the string and converts " ' < > and other into html code < and something like that. they show up on the screen equal, but are different strings ;) addslashes just adds / before ' and " so they could be used inside a string for inserting into db for example hope it clarifies it :) it's hard to explain even in my nature language, and harder in english for me ;) hope it clarifiys |
So would that be why I get errors when run Counter Updates with Boofo's Babe as the last poster sometimes? I see what you are saying though. Thank you for it explaining it a little better to me. :)
|
hmm, normally it should work, when updating counters....
i've looked into the code, and can't see something wrong.. |
When I had Scott's last title on forumhome installed, it always snagged on that name and gave me a db error. I don't have the hack installed now. I haven't tried the counters since the new install so I may have spoken ahead of myself. Sorry about that. :)
|
All times are GMT. The time now is 08:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|