Is it possible to have a php script serve a javascript? I want to store data in a mysql table and be able to scroll the data, and this is the only way I can think of. Any ideas?
yes you can. Just have PHP print the javascript out directly as you would any HTML. You can also include the script as you would in HTML with the <SCRIPT> tag.