Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random approvals

Status
Not open for further replies.

programmher

Programmer
May 25, 2000
235
US
I have a page that allows users to approve one, some, or all records. The corresponding field on my SQL database is a yes/no (0,1) field.

My current query updates either the first record or all records. I am encountering difficulties in associating specific IDs that have an "approved" field that will change from 0 to 1.

Can anyone share some insight on how I can resolve this issue? [sig][/sig]
 
Hi!

Usually what I do in these case, I dont use update the field in the db. I delete them all and readd them all. Way easier to manage. If you have lots of traffic on your site this is NOT a good solution.

This is not a great solution but it usually work and it makes everything easier...

Chris ;-) [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top