Jump to content

Recommended Posts

I am building a admin area where information put in to a database kan be viewed but also deleted and edited. Existing of 3 scripts (pages).

list.php (where the list of records is shown.) contains queries and functions for new.php and edit.php and to delete records.

new.php (the input form for new records)

edit.php (this form shows information to edit existing records)

all of the funtions POST and GET a id from the database to the other script or funtion so that function knows what record to edit, delete, or show.

The problem i have is that...
after every edited or added or deleted record the function seems to repeat itself when the page is refreshed.

what can i do to solve this?

I didn't add the code becouse it's 8 pages.
Check your conditions make sure that the logic is right, as in, you did not inadvertently set them to always be true and therefore execute no matter what.

Other than that, nobody can help you unless you post some code. You may have 8 pages worth of code, but obviously not all 8 pages of it is messing up, as it seems to be doing its job as far as database manipulation.

So narrow it down to the part that actually does the processing, and post some code.
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.