Does anyone have a global.asa example page where a connection to a sql database is oppened and the variables declared??
pls help
Printable View
Does anyone have a global.asa example page where a connection to a sql database is oppened and the variables declared??
pls help
here's an example :
this was for a shopping cart we made!Code:<script language="vbscript" runat=server>
Sub Session_OnStart
'Shopping cart array
Const cartAttributes = 5
Const maxCartItems = 10
ReDim arrcart(cartAttributes,maxCartItems)
Session("MyCart") = arrcart
Session("cartItem") = 0
End Sub
</script>
but you can put your connection in there!!
p.s. remember, your global.asa HAS to be on the root of your web site!