<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : Author_ID unique ID</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : Author_ID unique ID]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 16:21:54 +0000</pubDate>
  <lastBuildDate>Sun, 27 Nov 2005 17:38:59 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=17324</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[Author_ID unique ID : dj air, mate, youre going to...]]></title>
   <link>https://forums.webwiz.net/author-id-unique-id_topic17324_post94456.html#94456</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=20473">ramone_johnny</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 27&nbsp;November&nbsp;2005 at 5:38pm<br /><br />dj air,<DIV>mate, youre going to kill me when i tell you what the problem was!</DIV><DIV>&nbsp;</DIV><DIV>I had an invalid unique ID within the peoples table that wasnt set correctly. When I carried out the upgrade from access to sql server ALL of my ID's within each table that should have been unique identifier werent.</DIV><DIV>&nbsp;</DIV><DIV>I had to go through manually and reset them.</DIV><DIV>&nbsp;</DIV><DIV><IMG height=17 alt=Embarrassed src="http://forums.webwiz.net/smileys/smiley9.gif" width=17 align=absMiddle border="0"></DIV>]]>
   </description>
   <pubDate>Sun, 27 Nov 2005 17:38:59 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/author-id-unique-id_topic17324_post94456.html#94456</guid>
  </item> 
  <item>
   <title><![CDATA[Author_ID unique ID : &amp;#039;******************************************&amp;#039;***...]]></title>
   <link>https://forums.webwiz.net/author-id-unique-id_topic17324_post94424.html#94424</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=2216">dj air</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 27&nbsp;November&nbsp;2005 at 10:47am<br /><br /><div>'******************************************<br>&nbsp;'*** &nbsp;&nbsp; &nbsp;Update datbase&nbsp;&nbsp;***<br>&nbsp;'******************************************</div><div>'If this is new reg and the username and email is OK or this is an update then register the new user or update the rs<br>If(strMode = "new" AND blnUsernameOK AND blnEmailOK AND blnSecurityCodeOKAND blnEmailBlocked = False) OR (strMode = "update" ANDblnConfirmPassOK) Then</div><div>'If this is new then create a new rs and reset session variable<br>If strMode = "new" Then&nbsp;<br>Session("lngSecurityCode") = null<br>rsCommon.AddNew<br>End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br> 'Insert the user's details into the rs<br>With rsCommon<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br> If strMode = "new" Then .Fields("Username") = strUsername<br>If strMode = "new" Then .Fields("Group_ID") = intForumStartingGroup<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>'If part number = 0 (all) or part 1 (reg details) then run this code<br>If intUpdatePartNumber = 0 OR intUpdatePartNumber = 1 Then<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&a mp;nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br> If (strMode = "update" AND blnPasswordChange = True) OR&nbsp; strMode = "new" Then .Fields("Password") = strEncryptedPassword<br>If (strMode = "update" AND blnPasswordChange = True) OR&nbsp; strMode = "new" Then .Fields("Salt") = strSalt<br>.Fields("User_code") = strUserCode<br>.Fields("Author_email") = strEmail<br>.Fields("firstname") = strFirstname<br>.Fields("lastname") = strLastname<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><font color="#ff0000"><b>.update <br><br>.requery<br><br>.movelast</b></font><br><br>'GET THE USERS AUTHOR_ID NUMBER<br><strong>user_id = rsCommon("Author_ID")</strong>&nbsp;&nbsp;&nbsp;&nbsp;*doesnt appear to work??????&nbsp;&nbsp;&nbsp;<br>End If</div><div>&nbsp;</div><div>&nbsp;</div><div>I then use it later do to the following - however this fails as I have no value for user_id</div><div>&nbsp;</div><div>'ADD TO THE PEOPLES TABLE</div><div>&nbsp;</div><div>Set objRS&nbsp; = Server.CreateObject("ADODB.Recordset")<br>strSQL = "SELECT * From people;"<br>objRS.MaxRecords = 1&nbsp;<br>objRS.CursorType = 2<br>objRS.LockType = 3<br>objRS.Open strSQL, adoCon<br>objRS.AddNew<br>objRS.Fields("userID") = user_id<br>objRS.Fields("firstname") = strFirstname<br>objRS.Fields("lastname") = strLastname<br>objRS.Update<br>objRS.Close<br>Set objRS = Nothing<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>'CREATE USERS PHOTO ALBUM FOLDER<br>set objFSO = Server.CreateObject("Scripting.FileSystemObject")<br>If Not objFSO.FolderExists(Server.MapPath(strPath) &amp; "/" &amp; user_id) then<br>objFSO.CreateFolder Server.MapPath(strPath) &amp; "/" &amp; user_id<br>end if<br>Set objFSO = nothing<br><br><br><br><br><br>-----------<br><br>try the above, can you past the above query thats not shown (the one above that segmaent of code)<br><br>so i can make sure it will get the last record in the database<br><br>the parts in read will update the author table setting the author_IDvalue, then it requerys the table (not sure on the query so cant tellyet), and ive set it to move to lthe last/latest record where it thengets the author_ID value<br></div>]]>
   </description>
   <pubDate>Sun, 27 Nov 2005 10:47:29 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/author-id-unique-id_topic17324_post94424.html#94424</guid>
  </item> 
  <item>
   <title><![CDATA[Author_ID unique ID : dj air - mate, any chance you...]]></title>
   <link>https://forums.webwiz.net/author-id-unique-id_topic17324_post94310.html#94310</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=20473">ramone_johnny</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 25&nbsp;November&nbsp;2005 at 1:49am<br /><br /><P>dj air - mate, any chance you could provide an exmaple of your method. Also where exactly would I place this bit of code in register.asp?</P><DIV>&nbsp;</DIV><DIV>Thank you.</DIV><DIV>John</DIV>]]>
   </description>
   <pubDate>Fri, 25 Nov 2005 01:49:58 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/author-id-unique-id_topic17324_post94310.html#94310</guid>
  </item> 
  <item>
   <title><![CDATA[Author_ID unique ID : yes you need ot requery getting...]]></title>
   <link>https://forums.webwiz.net/author-id-unique-id_topic17324_post94272.html#94272</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=2216">dj air</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 24&nbsp;November&nbsp;2005 at 7:33am<br /><br />yes you need ot requery getting the last record order by author_ID DESC <br><br>then bring that value into your server verible<br>]]>
   </description>
   <pubDate>Thu, 24 Nov 2005 07:33:06 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/author-id-unique-id_topic17324_post94272.html#94272</guid>
  </item> 
  <item>
   <title><![CDATA[Author_ID unique ID : Well im off to bed - its 11:00pm...]]></title>
   <link>https://forums.webwiz.net/author-id-unique-id_topic17324_post94270.html#94270</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=20473">ramone_johnny</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 24&nbsp;November&nbsp;2005 at 7:26am<br /><br /><P>Well im off to bed - its 11:00pm here. If anyone could help me on this I would really appreciate it. As I said, Ive spent a considerable amount of time on this without any luck.</P><DIV>See everyone tomorrow with hopefully some answers!</DIV>]]>
   </description>
   <pubDate>Thu, 24 Nov 2005 07:26:03 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/author-id-unique-id_topic17324_post94270.html#94270</guid>
  </item> 
  <item>
   <title><![CDATA[Author_ID unique ID : All I need is the unique ID of...]]></title>
   <link>https://forums.webwiz.net/author-id-unique-id_topic17324_post94268.html#94268</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=20473">ramone_johnny</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 24&nbsp;November&nbsp;2005 at 7:10am<br /><br />All I need is the unique ID of the actual entry taking place when a user registers.<DIV>&nbsp;</DIV><DIV>Author_ID = ????</DIV>]]>
   </description>
   <pubDate>Thu, 24 Nov 2005 07:10:13 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/author-id-unique-id_topic17324_post94268.html#94268</guid>
  </item> 
  <item>
   <title><![CDATA[Author_ID unique ID : Any chance of an example? Ive...]]></title>
   <link>https://forums.webwiz.net/author-id-unique-id_topic17324_post94265.html#94265</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=20473">ramone_johnny</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 24&nbsp;November&nbsp;2005 at 6:52am<br /><br />Any chance of an example? Ive spent two days on this without any joy. <IMG height=17 alt=Cry src="http://forums.webwiz.net/smileys/smiley19.gif" width=17 align=absMiddle border="0">]]>
   </description>
   <pubDate>Thu, 24 Nov 2005 06:52:29 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/author-id-unique-id_topic17324_post94265.html#94265</guid>
  </item> 
  <item>
   <title><![CDATA[Author_ID unique ID : you have to requery the database...]]></title>
   <link>https://forums.webwiz.net/author-id-unique-id_topic17324_post94264.html#94264</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=2216">dj air</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 24&nbsp;November&nbsp;2005 at 6:42am<br /><br />you have to requery the database to get the new userID<br><br>apart from that im not to funiliar with V8.0 but should be ok the aboce idea<br>]]>
   </description>
   <pubDate>Thu, 24 Nov 2005 06:42:55 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/author-id-unique-id_topic17324_post94264.html#94264</guid>
  </item> 
  <item>
   <title><![CDATA[Author_ID unique ID : anyone????? ]]></title>
   <link>https://forums.webwiz.net/author-id-unique-id_topic17324_post94262.html#94262</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=20473">ramone_johnny</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 24&nbsp;November&nbsp;2005 at 6:35am<br /><br />anyone????? <IMG height=17 alt=Cry src="http://forums.webwiz.net/smileys/smiley19.gif" width=17 align=absMiddle border="0">]]>
   </description>
   <pubDate>Thu, 24 Nov 2005 06:35:19 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/author-id-unique-id_topic17324_post94262.html#94262</guid>
  </item> 
  <item>
   <title><![CDATA[Author_ID unique ID : HI guys, Im trying to catch the...]]></title>
   <link>https://forums.webwiz.net/author-id-unique-id_topic17324_post94224.html#94224</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=20473">ramone_johnny</a><br /><strong>Subject:</strong> 17324<br /><strong>Posted:</strong> 23&nbsp;November&nbsp;2005 at 6:25pm<br /><br />HI guys,<DIV>Im trying to catch the actual unique ID&nbsp;of the entry taking place when a user registers on my site, then populate a second table with that value.</DIV><DIV>&nbsp;</DIV><DIV>As in Author_ID = 75 &gt; then ad 75 within the 'peoples' table as UserID.</DIV><DIV>&nbsp;</DIV><DIV>Now Ive been using this bit of code and I thought It was working ok, however I have recently discovered since upgrading to sql server 8.0 that my value of user_id is null.</DIV><DIV>&nbsp;</DIV><DIV>Could someone help me out with this? I desperately need to catch the unique ID of the entry taking place!</DIV><DIV>&nbsp;</DIV><DIV>'******************************************<BR>&nbsp;'*** &nbsp;&nbsp; &nbsp;Update datbase&nbsp;&nbsp;***<BR>&nbsp;'******************************************</DIV><DIV>'If this is new reg and the username and email is OK or this is an update then register the new user or update the rs<BR>If (strMode = "new" AND blnUsernameOK AND blnEmailOK AND blnSecurityCodeOK AND blnEmailBlocked = False) OR (strMode = "update" AND blnConfirmPassOK) Then</DIV><DIV>'If this is new then create a new rs and reset session variable<BR>If strMode = "new" Then&nbsp;<BR>Session("lngSecurityCode") = null<BR>rsCommon.AddNew<BR>End If<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR> 'Insert the user's details into the rs<BR>With rsCommon<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR> If strMode = "new" Then .Fields("Username") = strUsername<BR>If strMode = "new" Then .Fields("Group_ID") = intForumStartingGroup<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>'If part number = 0 (all) or part 1 (reg details) then run this code<BR>If intUpdatePartNumber = 0 OR intUpdatePartNumber = 1 Then<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR> If (strMode = "update" AND blnPasswordChange = True) OR&nbsp; strMode = "new" Then .Fields("Password") = strEncryptedPassword<BR>If (strMode = "update" AND blnPasswordChange = True) OR&nbsp; strMode = "new" Then .Fields("Salt") = strSalt<BR>.Fields("User_code") = strUserCode<BR>.Fields("Author_email") = strEmail<BR>.Fields("firstname") = strFirstname<BR>.Fields("lastname") = strLastname<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>'GET THE USERS AUTHOR_ID NUMBER<BR><strong>user_id = rsCommon("Author_ID")</strong>&nbsp;&nbsp;&nbsp;&nbsp;*doesnt appear to work??????&nbsp;&nbsp;&nbsp;<BR>End If</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I then use it later do to the following - however this fails as I have no value for user_id</DIV><DIV>&nbsp;</DIV><DIV>'ADD TO THE PEOPLES TABLE</DIV><DIV>&nbsp;</DIV><DIV>Set objRS&nbsp; = Server.CreateObject("ADODB.Recordset")<BR>strSQL = "SELECT * From people;"<BR>objRS.MaxRecords = 1&nbsp;<BR>objRS.CursorType = 2<BR>objRS.LockType = 3<BR>objRS.Open strSQL, adoCon<BR>objRS.AddNew<BR>objRS.Fields("userID") = user_id<BR>objRS.Fields("firstname") = strFirstname<BR>objRS.Fields("lastname") = strLastname<BR>objRS.Update<BR>objRS.Close<BR>Set objRS = Nothing<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>'CREATE USERS PHOTO ALBUM FOLDER<BR>set objFSO = Server.CreateObject("Scripting.FileSystemObject")<BR>If Not objFSO.FolderExists(Server.MapPath(strPath) &amp; "/" &amp; user_id) then<BR>objFSO.CreateFolder Server.MapPath(strPath) &amp; "/" &amp; user_id<BR>end if<BR>Set objFSO = nothing</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>John</DIV>]]>
   </description>
   <pubDate>Wed, 23 Nov 2005 18:25:29 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/author-id-unique-id_topic17324_post94224.html#94224</guid>
  </item> 
 </channel>
</rss>