the language you need is not jscript its php
jscript is client side and not the type for connecting to a database
use php and for members section you need to add the session code on top of each webpage that need authenciation

it simple
try googleing and you don't find it post here, i'll try to post an example
shabbir like this