Hi all,
I want to store some html/php/javascript in a mySQL database field i.e.
<html>
<p>
<?php echo "hello" ?>
</p>
</html>
and then extract this information and echo it via a php script. i.e.
//conect to db
$info = mysql_query("select * from script where script_id = $script_id", $db);
//if entry exists
echo "$info";
The problem is that the script contains "speech marks" and ultimately ends the echo " " function to early. Any ideas?
-Thanks Chris.
http://uk.php.net/manual/en/function.urlencode.php
and
http://uk.php.net/manual/en/function.urldecode.php
http://uk.php.net/manual/en/function.htmlspecialchars.php