Hey guys,
Im wanting to add the following code so that additional tables are populated upon user registration. I had this working on a previous version of WWF but not on 8.
In the previous version I had the following bit of code below added around line 1133 near this bit of code...
'Update the database with the new user's details (needed for MS Access which can be slow updating)
.Update
'Re-run the query to read in the updated recordset from the database
.Requery
'ADD THEIR USERID TO THE VIEW_COUNT TABLE
'THIS CONTROLS HOW MANY TIMES THEIR PROFILE HAS BEEN VIEWED
Set objRS = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * From view_count;"
objRS.MaxRecords = 1
objRS.CursorType = 2
objRS.LockType = 3
objRS.Open strSQL, adoCon
objRS.AddNew
objRS.Fields("userID") = user_id
objRS.Update
objRS.Close
Set objRS = Nothing
Set objRS = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * From people;"
objRS.MaxRecords = 1
objRS.CursorType = 2
objRS.LockType = 3
objRS.Open strSQL, adoCon
objRS.AddNew
objRS.Fields("userID") = user_id
objRS.Fields("firstname") = Replace(strFirstname,"'","''")
objRS.Fields("lastname") = Replace(strLastname,"'","''")
objRS.Update
objRS.Close
Set objRS = Nothing
'CREATE USERS PHOTO ALBUM FOLDER
set objFSO = Server.CreateObject("Scripting.FileSystemObject")
If Not objFSO.FolderExists(Server.MapPath(strPath) & "/" & user_id) then
objFSO.CreateFolder Server.MapPath(strPath) & "/" & user_id
end if
Set objFSO = nothing
Now this no longer works? Whats changed? Where does it need to go? Could someone point me in the right direction here please?
Thanks
RJ