06-11-2008, 11:09 AM
|
#7 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
Quote:
|
Sketch, thanks for the note about the off-by-one error on $len however you introduce one yourself by changing the final for loop to use intval($passLen-1) (the resulting random string will always be one character less than $passLen).
|
Its not an undefined offset, but yes thanks for noticing that, i didn't mean to post the code with that line in, i must have left it in when i was messing with the code earlier no idea why mind but there you go.
note to self: learn how to use copy and paste properly 
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|