The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
Sometimes when I go to delete a member I get a little apprehensive that I may accidentally delete the wrong person. I would like to have the members name appear on the pop_delete.asp page so I know I am deleting the correct person.
I have uploaded the picture below to show what I would like it to do.
I was trying to figure out how to add the member name to appear but I can't figure it out. The pop_delete.asp file is too complicated for me and I don't want to mess it up. Can anyone help? Thanks.
<
I have uploaded the picture below to show what I would like it to do.
I was trying to figure out how to add the member name to appear but I can't figure it out. The pop_delete.asp file is too complicated for me and I don't want to mess it up. Can anyone help? Thanks.
<
Posted
Member_ID is passed in the query string. Any reason for not using it to retrieve the member's name from the database?<
Posted
I just don't know how to do that.
<
Posted
"SELECT M_NAME FROM " & strMemberTablePrefix & "MEMBERS WHERE MEMBER_ID = " & Member_ID<
Last edited by phy1729 on 31 March 2008, 21:10
Posted
In pop_delete.asp line 694-696
to
This has been tested.<
Code:
case "Member"
Response.Write("Member")
case "Category"
Code:
case "Member"
strsql="SELECT M_NAME FROM " & strMemberTablePrefix & "MEMBERS WHERE MEMBER_ID = " & Member_ID
set rs = my_Conn.Execute (strSql)
M_NAME = rs("M_NAME")
rs.close
set rs = nothing
Response.Write("Member <br> " & M_NAME)
case "Category"
Posted
Perfect! Thank you so much!
<
Posted
Your welcome.<
Posted
There's already a function in inc_func_secure.asp that returns a member's username if you pass the id through it, like so:
You may need to include inc_func_secure.asp in pop_delete.asp if it isn't already included.
<
Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Code:
response.write getMemberName(Member_ID)<
Search is your friend
“I was having a mildly paranoid day, mostly due to thefact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
Well that makes modding easier. Thanks Shaggy.
New Code:
<
Code:
case "Member"
Response.Write("Member <br> " & getMemberName(Member_ID))
case "Category"
Last edited by phy1729 on 01 April 2008, 07:05
Posted
This is a nice little addition to help reduce mistakes. It works for lock (pop_lock.asp) and unlock (pop_open.asp) as well.<
Email Member
Message Member
Post Moderation
FileUpload
If you're having problems uploading, try choosing a smaller image.
Preview post
Send Topic
Loading...