We would like to serve javascript from our database.
We assumed it would be like serving html but its not working.
What we have is a small news ticker and we would like to use a call to our database via php to serve this ticker, so we put the ticker information into the database and put the call in our php, we can see its getting it from the database but its not functioning. If we add the javascript right into our code it works fine.
Can someone suggest a way to make this work?
Currently we are using
<?php print "$news1"; ?>
and we tried
<?php echo "$news1"; ?>
but its not working.
The ticker we are trying to use is here http://dynamicdrive.com/dynamicindex2/fadescroll.htm
Any thoughts and help would be greatly appreciated. Thank you.