• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

loop problem

Guest
Jul 13, 2006 Jul 13, 2006

Copy link to clipboard

Copied

Hi i have a cfoutput of a list of IDs and names with delete and enter next to each name ie

5 Craig [Delete] [Enter]
6 John [Delete] [Enter]

the delete link goes to a delete action page where i delete that name, but at the minuite it loops through all the name and deletes them all, what do i change to only delete the specific name

TOPICS
Advanced techniques

Views

248

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 14, 2006 Jul 14, 2006

Copy link to clipboard

Copied

If delete is just a link, I don't understand why you would loop in your delete action page to begin with. Assuming that your delete link URL is something like:

http://myurl/delete_action_page.cfm?id=5

Then your delete_action_page would simply need to

delete from TempUsers
where TempID = #URL.ID#

You shouldn't need to loop to delete in your action page that does the delete, but I am probably missing something...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 14, 2006 Jul 14, 2006

Copy link to clipboard

Copied

LATEST
ok yes i understand that but the url i get contains all the id from each row ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation