RE: [PHP] Re: Random Numbers..

2003-12-06 Thread Burrito Warrior
No, I wouldn't do that. What if another quote gets deleted. The new assigned QuoteID would be 6 and your solution wouldn't work. This would: /* selecting a random record, where n = 1. Works fine on small tables */ mysql SELECT value FROM table ORDER BY RAND() LIMIT n; /* selecting a random

RE: [PHP] $_POST[]

2003-12-18 Thread Burrito Warrior
That practice $_POST[formReviewBy] should be discouraged. That kind of practice is nearly as bad as magic numbers. You *should* always put variables referenced by $_POST[formReviewBy] in quotes unless specifically designed. Why?? If you run into a page with a mysterious error (usually missing