% @ Language = jscript %> <% function JScriptDatabaseRead() { var c, r, country, plugs, comment, strOut = ""; var sql = "SELECT ID, Country, Plug, Comment FROM Telephone WHERE Country <> null ORDER BY Country;"; var cnstr = ""; /* Make a constant with Ctrl + LineFeed chars. */ var vbCrLf = String.fromCharCode( 13, 10 ); cnstr+= "Provider=Microsoft.Jet.OLEDB.4.0;"; cnstr+= "Data Source=" + Server.Mappath("../db/Database.mdb"); /* Create database connection */ c = new ActiveXObject("ADODB.Connection"); c.Open(cnstr); //c.Open( Application("dbConn"), Application("dbUsr"), Application("dbPass") ); r = c.Execute(sql); /* Read data from database */ while (!r.BOF & !r.EOF){ country = r(1); plugs = new String(r(2)); if ((plugs == "null") || (plugs == '0')) {plugs = " "}; comment = new String(r(3)); if ((comment == "null") || (comment == '0')) {comment = " "}; strOut += '
Click on the name of a country to view more information.
The information on this page is currently out of date
| Country | Plug(s) | Comment |
|---|