View Full Version : Javascript and MySql

02-05-2004, 10:12 PM
Hi guys

is there any way in which a javascript can read data from a mysql database and dump it on the screen so it is a live data view??


Roy Sinclair
02-05-2004, 10:25 PM
No. Browser based javascript simply isn't allowed to play those sorts of games. You could perhaps simulate it via hidden iframes but you must have a server side component which does the actual talking to the database.

02-09-2004, 02:59 AM
You could use PHP to read the Mysql database and then pass the PHP variables to the javascript function.