|
erinatkins -> RE: asp search script (5/7/2003 10:24:32)
|
Spooky or any of the asp helpers, Set up code on : <sSQL=" select pName from table where ID=xxxx"
sDSN= " Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(" /fpdb/vsproducts.mdb" )
set objConn = Server.CreateObject(" ADODB.Connection" ):objConn.Open sDSN
Set objRS = objConn.Execute(sSQL)
If objRS.eof OR objRS.bof Then
' Use default text
Else
' Use database text
MetaTag=objRS(0)
End if
objRS.Close : set objRS = Nothing
objConn.close : set objConn = Nothing
%>
<html>
<head>
<META NAME=" Keywords" CONTENT=" <%=MetaTag%>,<%=sectionName%>,plate racks, curio cabinets, plate rack, plate hangers, plate stands, frames, domes, glass domes, ornament stands, ornament hangers, ornament trees, doll cases, doll cabinets, doll, case, ornament hanger, ornament display tree, ornament stand, ornament, glass showcases, cup and saucer racks, cup and saucer stands, plate display stands, plate rails, plate stand, easels, plate easels, platter stands, platter racks, platter hangers, spoon racks, spoon cabinets, plate frames, floor easels, glass display cases, glass display cabinets, spoon displays, acrylic display cases and cabinets, antique display accessories, collectible display accessories, plate displays, turntables, fine home displays, christmas ornament hangers, mirrored place mats, mirror display accessories, glass display cases, ornament domes, watch domes, display domes, thimble domes, platform domes, acrylic domes, curio racks, sports display cases, sports collector' s cases, glass cabinets, plate rack, glass display cases, figurine display cases, glass doll cases, risers, tiered plate stands, dinner plate stands, dinner plate racks, pie racks, pie stands, picture easels, book easels, tile easels, egg stands, display egg holders, tea cup and saucer stands, cup and saucer hangers, picture display easels, tile racks, tile displays, photo holders, picture holders, note card holders, picture racks, wreath hangers, picture frames, picture stands, mirrored placemats, mirrored tablemats, mirror placemats, mirror displays, mirror backdrops, mirrored risers, mirror riser sets, lighted turntables, turntable displays, light bases, racks for plates, sports display showcases, custom glass display cases, ornament display trees, ornament tree stands, christmas ornament trees, mirrored displays, shelved glass collector' s cases, ornament display boxes, shelf racks, display shelves, display racks, christmas stocking hangers, stocking hangers, christmas stocking hooks, bakers racks, wine racks, wine holders, pot racks, pot hangers, wreath hooks, door hangers, door hooks, quilt racks, plate hanger " >
<TITLE><%=MetaTag%>- Fine Home </TITLE>
</head>
</html> Code is not generating any error message after I removed the ) from <TITLE><%=MetaTag%> How will I be able to test that this working? I think we would want to write a text file that will show what product names are being called by the SQL statement. IS there a easy way to do this? Thanks Erin
|
|
|
|