List Info

Thread: Insert Javascript/HTML into Mysql using PHP??




Insert Javascript/HTML into Mysql using PHP??
user name
2006-11-08 22:11:14
On my website i would like to allow people to insert their
own
javascript/html into the fields in order to change
backgrounds and add
pictures and movies clips to their sites

literally i need to enter javascript as it is into
Mysql......using php


a basic code for just the background would be

---------------------
<style type="text/css">. {Page Body
Property}
 body {

background-image:url('ht
tp://www.squaredotproductionz.com/pics/sdot1.jpg');
</style>

-----------------------

if i save that above text as $textbox1 and then add to the
insert
function below i get a error message

$sqlquery = "INSERT INTO profile1 VALUES (' ', '
$user', '$textbox1')";
$results = mysql_query($sqlquery);


does anyone know how to use php to insert javascript into
Mysql


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "PHP & MySQL" group.
To post to this group, send email to phpmysqlgooglegroups.com
To unsubscribe from this group, send email to
phpmysql-unsubscribegooglegroups.com
For more options, visit this group at ht
tp://groups-beta.google.com/group/phpmysql?hl=en
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )