Jump to content


fuction keeps repeating itself on refresh

  • Please log in to reply
1 reply to this topic

#1 izzy

  • Members
  • PipPipPip
  • Advanced Member
  • 31 posts

Posted 24 May 2006 - 10:37 AM

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.

#2 .josh

  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 24 May 2006 - 05:27 PM

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.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users