Hello all,
Anyone know how I could insert this type of string into a MySQL db?
<script language="javascript" src=http://www.phpbuilder.com/board/archive/index.php/"http://............></script>
I have tried everything(that I know of) such as
addslashes($the_variable_containing_HTML);
htmlentities($the_variable,ENT_QUOTES);
htmlentities($the_variable);
htmlspecialchars($the_variable);
Any help is much appreciated!
Thanks,
gary
what about preg_quote() or quote_meta()??
By the way...I have set the datatype in the DB to both varchar and text, with all the above combinations. None work.
Anyone know how I could insert this type of string into a MySQL db?
<script language="javascript" src=http://www.phpbuilder.com/board/archive/index.php/"http://............></script>
I have tried everything(that I know of) such as
addslashes($the_variable_containing_HTML);
htmlentities($the_variable,ENT_QUOTES);
htmlentities($the_variable);
htmlspecialchars($the_variable);
Any help is much appreciated!
Thanks,
gary
what about preg_quote() or quote_meta()??
By the way...I have set the datatype in the DB to both varchar and text, with all the above combinations. None work.