![]() |
Hello again to all my friends, my need for help just never ends ^_^
Eeh, anyway, I've got a variable, $data, and I want to put it into an <a href="blah bal&data="($data)">
etc, but $data has double/single quotes in it, and ">" and "<" signs... is there any way to get php to add slashes to any non-letter or single quote character? (actual php code used) PHP Code:
|
What do you mean? PHP doesn't care about < or > in code, and simply escape quotes when necessary (add a backslash before them).
|
ah yes, BUT, the $data exists in a mySQL DB, and it is pulled directly from there placed in an <a href=""> tag, and any innate quotes in the data disrupt the tag... I was wondering if there was a way to get php to escape all the quotes in that string.
|
All times are GMT. The time now is 03:36 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:
|