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 if(client.totalQuantity == null) { } else { if(client.totalQuantity > 0) { write(" |  View Cart: " + client.totalQuantity + " item(s) " + client.totalDollars + " sub-total ") } else { } }  |  My Account  
if(request.Brand == 'All') { } else { }
go to home page
client.C4Desc = request.C4Desc; if(client.Brand == 'All') { cursor = database.cursor("select distinct c5desc from versitex.product where brand like '%' and c1desc like '" + unescape(client.C1Desc) + "' and c2desc like '" + unescape(client.C2Desc) + "' and c3desc like '" + unescape(client.C3Desc) + "' and c4desc like '" + unescape(client.C4Desc) + "' order by c5desc "); cursor.next(); if(cursor.c5desc == '*') { cursor1 = database.cursor("select sub from versitex.product where brand like '%' and c1desc like '" + unescape(client.C1Desc) + "' and c2desc like '" + unescape(client.C2Desc) + "' and c3desc like '" + unescape(client.C3Desc) + "' and c4desc like '" + unescape(client.C4Desc) + "' "); cursor1.next(); var sub = 0; sub = cursor1.sub; cursor1.close(); cursor.close(); redirect("product.html?Id=" + sub + " "); } else { write("
"); cursor = database.cursor("select distinct c5desc from versitex.product where brand like '%' and c1desc like '" + unescape(client.C1Desc) + "' and c2desc like '" + unescape(client.C2Desc) + "' and c3desc like '" + unescape(client.C3Desc) + "' and c4desc like '" + unescape(client.C4Desc) + "' order by c5desc "); while(cursor.next()) { write("Go to " + cursor.c5desc + " " + cursor.c5desc + "
") } cursor.close(); write("
") } } else { cursor = database.cursor("select distinct c5desc from versitex.product where brand like '" + unescape(client.Brand) + "' and c1desc like '" + unescape(client.C1Desc) + "' and c2desc like '" + unescape(client.C2Desc) + "' and c3desc like '" + unescape(client.C3Desc) + "' and c4desc like '" + unescape(client.C4Desc) + "' order by c5desc "); cursor.next(); if(cursor.c5desc == '*') { cursor1 = database.cursor("select sub from versitex.product where brand like '" + unescape(client.Brand) + "' and c1desc like '" + unescape(client.C1Desc) + "' and c2desc like '" + unescape(client.C2Desc) + "' and c3desc like '" + unescape(client.C3Desc) + "' and c4desc like '" + unescape(client.C4Desc) + "' "); cursor1.next(); var sub = 0; sub = cursor1.sub; cursor1.close(); cursor.close(); redirect("product.html?Id=" + sub + " "); } else { write("
"); cursor = database.cursor("select distinct c5desc from versitex.product where brand like '" + unescape(client.Brand) + "' and c1desc like '" + unescape(client.C1Desc) + "' and c2desc like '" + unescape(client.C2Desc) + "' and c3desc like '" + unescape(client.C3Desc) + "' and c4desc like '" + unescape(client.C4Desc) + "' order by c5desc "); while(cursor.next()) { write("Go to " + cursor.c5desc + " " + cursor.c5desc + "
") } cursor.close(); write("
") } }