jaytaba 0 Newbie Poster

I have a simple login screen where I want the user upon entering the correct userid/password , for his userid to be inserted into a table in a database so to keep track who visited his web page.

My ISP is supposedly has created a DS named "win5_zjconstructioninc_com"

but the code below is failing to insert a record to the database.
Can you experienced programmers be kind to take a look at the code below and suggest a course of action and that if I should take the issue up with my ISP.

Thanks in advance

J.


<%@ Language=VBScript %>
<%
Dim DB_CONNECTIONSTRING
DB_CONNECTIONSTRING = "Provider=SQLOLEDB;Data Source=sql.fastbighost.com;" _
& "Initial Catalog=win5_zjconstructioninc_com;UserId=win5_zjconstructioninc_com;Password=JFjwori8;" _
& "Connect Timeout=15;Network Library=dbmssocn;"
%>
<%
If request.form("login")="kal" and request.form("password")="walthers" then

session("userlogin") = "OK"
session("pass") = "OK"
Dim I
Dim iRecordToUpdate ' Id of deleted record
Dim strSQL ' String variable for building our query
Dim objRecordset
Set objRecordset = Server.CreateObject("ADODB.Recordset")
iRecordToUpdate = Request.QueryString("id")
iRecordToUpdate = Replace(iRecordToUpdate, "'", "''")

If IsNumeric(iRecordToUpdate) Then
iRecordToUpdate = CLng(iRecordToUpdate)
Else
iRecordToUpdate = 0
End If

strSQL = "SELECT * FROM userlogin WHERE id=" & iRecordToUpdate & ";"
objRecordset.Open strSQL, DB_CONNECTIONSTRING, adOpenKeyset, adLockPessimistic, adCmdText
If Not objRecordset.EOF Then
objRecordset.MoveFirst
objRecordset.Fields("text_field") = request.form("login")
objRecordset.Fields("integer_field") = CInt(Day(Now()))
objRecordset.Fields("date_time_field") = Now()
objRecordset.Update

End If

jaytaba 0 Newbie Poster

ave been going back and forthwith Google support to find out the way they have indexed my website is by preceding the website name with << url snipped >>
If I type my website name in the Google free search, nothing comes up.
Is this a common practice, or they have done it because my website contains premium keywords.

Thanks in advance

jaytaba 0 Newbie Poster

Hi everyone, this website stuff is all new to me. So I have set up my web site, read through all tutorials and how to's.
Created my keywords, meta tags , description & etc..
Created my sitemap.xml (using Google's Python tool) along with urllist.txt & config.xml and created my robots.txt
Now when I use Google Sitemap tool , I see that Google is working with some cached data , from March 12 and none of the keywords and tags that I have added in the last few weeks have been indexed.
I keep submitting my sitemap to google, however that does not seem to change anything
Can some please give me a clue on what else I need to do.

Thanks in advance

Jay