<% @ 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 += '' + country + "" + plugs + "" + comment + "" + vbCrLf; r.MoveNext(); } // end while /* Close and free variables. */ r.Close(); c.Close(); /* Exit and return data. */ return(strOut); } %> Telephone standards around the world

Telephone standards around the world


Back | Main page

Click on the name of a country to view more information.

The information on this page is currently out of date


<% // call function and write the results to the browser. Response.Write ( JScriptDatabaseRead() ); %>
CountryPlug(s)Comment