I'm stumped I've looked all over the internet and found no real way to access mysql within javascript, therefore I can't do what I need to.
Basically my javascript code is loading random websites using Iframes and I would like those list of sites to be pulled from a mysql database, but I see no way in doing this. I've tried using php's include function in javascript with no luck.
Any ideas?
More information:
Im using a script I have on my server called sitelist.js for the source of the script. All that script contains is the following:
targetURLs = [
'http://www.aol.com',
'http://www.yahoo.com',
'http://www.bing.com'
];
But i would like it to load websites from the mysql database instead of having those websites.