M
Max Hazelhurst
Hi there,
Got an include file causing a timeout on the server when it's called on...
The code has a loop in it that I suspect may be the cause...
I can forward the entire inc file should it be necessary...
Many thanks as ever..
Max
Maxh att zelhurst dott com
if (user_id = "") Then
loggedin=false
do
user_id=generateID(5)
user_sql="SELECT tbl_user.user_id FROM
tbl_user WHERE ((tbl_user.user_id)=" & user_id & ");"
loop while db_validate(user_id, user_sql)
user_sql= "INSERT INTO tbl_user (user_id,
username, lastipaddress, lastcompname, expires )VALUES "
user_sql= user_sql & "('" & user_id & "','" &
"','" & Request.ServerVariables("REMOTE_ADDR") & "','" &
Request.ServerVariables("REMOTE_USER") & "','" & user_expires &
"');"
conn.Execute(user_sql)
end if
Got an include file causing a timeout on the server when it's called on...
The code has a loop in it that I suspect may be the cause...
I can forward the entire inc file should it be necessary...
Many thanks as ever..
Max
Maxh att zelhurst dott com
if (user_id = "") Then
loggedin=false
do
user_id=generateID(5)
user_sql="SELECT tbl_user.user_id FROM
tbl_user WHERE ((tbl_user.user_id)=" & user_id & ");"
loop while db_validate(user_id, user_sql)
user_sql= "INSERT INTO tbl_user (user_id,
username, lastipaddress, lastcompname, expires )VALUES "
user_sql= user_sql & "('" & user_id & "','" &
"','" & Request.ServerVariables("REMOTE_ADDR") & "','" &
Request.ServerVariables("REMOTE_USER") & "','" & user_expires &
"');"
conn.Execute(user_sql)
end if