M
^MisterJingo^
Hi all,
I've been asked to take a look at some asp code and am having trouble
finding where the problem lies.
The asp app itself contains a link to a second page, passing some
parameters on the query string. These parameters are used to stream a
file for downloading. This all works fine.
Just before stream occurs, I need to log the passed parameters into a
database. THis is done by calling the following function:
sub saveClipInfo(category,no,clipMode)
dateNow = year(now)&"-"&month(now)&"-"&day(now)& " "&time()
sql = "INSERT INTO tbl_podcasts
(category,clipNo,userID,forename,surname,studentYear,clipMode,dateNow)
VALUES ('"&category&"',"&no&", '"&session("userID")&"',
'"&session("forename")&"', '"&session("surname")&"',
"&right(trim(session("sYear")),1)&", '"&clipMode&"', '"&dateNow&"')"
conn.execute(sql)
end sub
Even though the paramters are being passed correctly, nothing is added
to the database. To make the problem more confusing, this function is
used elsewhere and works correctly. So it seems to be a problem with
the stream page?
Any help would be appreciated.
I've been asked to take a look at some asp code and am having trouble
finding where the problem lies.
The asp app itself contains a link to a second page, passing some
parameters on the query string. These parameters are used to stream a
file for downloading. This all works fine.
Just before stream occurs, I need to log the passed parameters into a
database. THis is done by calling the following function:
sub saveClipInfo(category,no,clipMode)
dateNow = year(now)&"-"&month(now)&"-"&day(now)& " "&time()
sql = "INSERT INTO tbl_podcasts
(category,clipNo,userID,forename,surname,studentYear,clipMode,dateNow)
VALUES ('"&category&"',"&no&", '"&session("userID")&"',
'"&session("forename")&"', '"&session("surname")&"',
"&right(trim(session("sYear")),1)&", '"&clipMode&"', '"&dateNow&"')"
conn.execute(sql)
end sub
Even though the paramters are being passed correctly, nothing is added
to the database. To make the problem more confusing, this function is
used elsewhere and works correctly. So it seems to be a problem with
the stream page?
Any help would be appreciated.