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.
<
نوشته شده در
Member_ID is passed in the query string. Any reason for not using it to retrieve the member's name from the database?<
نوشته شده در
I just don't know how to do that.
<
نوشته شده در
"SELECT M_NAME FROM " & strMemberTablePrefix & "MEMBERS WHERE MEMBER_ID = " & Member_ID<
آخرین ویرایش توسط
نوشته شده در
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"
نوشته شده در
Perfect! Thank you so much!
<
نوشته شده در
Your welcome.<
نوشته شده در
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.”
نوشته شده در
Well that makes modding easier. Thanks Shaggy.
New Code:
<
Code:
case "Member"
Response.Write("Member <br> " & getMemberName(Member_ID))
case "Category"
آخرین ویرایش توسط
نوشته شده در
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
بارگزاری فایل
If you're having problems uploading, try choosing a smaller image.
پیشنمایش مطلب
Send Topic
Loading...