I am inserting
$t= "<script>
document.write(new Date().toLocaleTimeString()+' '+new Date().toLocaleDateString())
</script>";
into the database . echo $t
gives the correct data and time but while inserting into the database , it is inserted as
"<script>
document.write(new Date().toLocaleTimeString()+' '+new Date().toLocaleDateString())
</script>";
?
why does it so ? Also, The column where, I am inserting this $t is of varchar type.