Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old May 26th, 2003, 01:08 AM
plutodip plutodip is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 38 plutodip User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
membership program calculates wrong

I have a membership program (monthly membership fee 10 dollars) that is not allocating the members correctly. It is suppose to start at number 1 and continue 2, 3, 4, and so on. I tested it ... and, I joined 40 test people ... and then deleted 39 ... leaving number 1 still there ... but ... it shows that there are invisible members in those spots ... it never cleared them ... and will not allow for any of those spots to be reused ... Right now, if you would join, it would keep number 1 and then jump to 41. How can I fix this?


Reply With Quote
  #2  
Old May 26th, 2003, 10:40 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: membership program calculates wrong

It sounds like you're using auto_increment - it will never go back, it just gives a number 1 bigger than before each time. It doesn't mean that 2-40 are still there...

Reply With Quote
  #3  
Old May 26th, 2003, 11:30 AM
plutodip plutodip is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 38 plutodip User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: membership program calculates wrong

Hi xs0,

Yes ... you are correct ... it is in auto_increment ...

should I change this?

I don't want to launch this to the public if this will be a problem ... I would be sooo grateful for your suggetions....!!!

Thank you again,
Sandy

Reply With Quote
  #4  
Old May 26th, 2003, 11:41 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: membership program calculates wrong

BTW, I also want you to know that I understand now what you mean about the numbering ... but ... for the sake of making sure this is completely correct (because of my calculations in my spreadsheet and what the payouts are) .... I needed to see, first-hand, as people joined, how the system would work and if it worked exactly as I had calculated it. The subsequent numbering of people was just a very small step ... the payouts are (lololol) my next concern. lol ... just dotting my i's and crossing my t's. Can you please take a look at the website if you are not too busy ...? http://www.recyclemoney.com

xso ... sorry for the long explanation ... but ... I wanted to make sure you knew this ...

thank you so much,
Sandy

Reply With Quote
  #5  
Old May 26th, 2003, 11:49 AM
plutodip plutodip is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 38 plutodip User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: membership program calculates wrong

I was wrong about that website name ...
I typed it wrong ... sorry ..
plus ... another factor concerning the join number was that once a person joins, they will be given a number ... I needed this to be accurate and jump to number 2 (even after the position has been deleted someone else should be able to use it).

it is http://www.recycledmoney.com

thanks,
plutodip

Reply With Quote
  #6  
Old May 26th, 2003, 04:51 PM
plutodip plutodip is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 38 plutodip User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: membership program calculates wrong

ok ... can I delete all records, including number 1 and just start over ... and, will the system in my sql allow this?

If I do, should I turn off auto_increment?

any suggestions ... PLEASE!

thanks for all of the help,
plutodip


Reply With Quote
  #7  
Old May 26th, 2003, 08:48 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: membership program calculates wrong

you have to drop and recreate the table...Thw numbering will start from 1 again...

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > membership program calculates wrong


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway