Jump to content

[SOLVED] Execute a certain deed to all entries at once?


djfox

Recommended Posts

I`m sure there`s a way to do it. Let`s say I have a table called "table" and it has the fields "id", "name", "number". And let`s say it currently has 100 entries but it grows in number of entries. When I click I a button in a form, I want the field "number" changed to something else to all the entires. How is this accomplished?

Link to comment
Share on other sites

The output should be different for each entry. Ie, id 1 might have number = 500 but id 2 might have number = 100. I will have a form made (which I can do no problem) which I will enter a number, say, 50, and the code needs to subtract that number from all entries in he field "number". So "number" is different for all entries and will have a different output as well. So from the example, if I want to subtract 50, the result should be that it will update the fields:

id 1 number 450

id 2 number 50

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.