if(!database.connected()) database.connect("ORACLE", "2:ORCL", "CUB", "CREEK", "") if (!database.connected()) write("Error: Unable to connect to database.") else
if(client.Name == null) { write("  Log In") } else { write("  Welcome, " + client.Name + " ") } go to privacy policy Privacy     Return Policy if(client.totalQuantity == null) { } else { if(client.totalQuantity > 0) { write(" |  View Cart: " + client.totalQuantity + " item(s) " + client.totalDollars + " sub-total ") } else { } }  |  My Account  
write("
"); cursor = database.cursor("select distinct brand from versitex.product order by brand "); while(cursor.next()) { write("Go to " + cursor.brand + " products " + cursor.brand + "
") } cursor.close(); write("
"); cursor = database.cursor("select content from versitex.ad where page = 'brand0.html' and brand = 'All' "); cursor.next(); write(" " + cursor.content + "
"); cursor.close();