No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
Re: may be the solution in saving the generated random value in database then when generate any new value, if founded in database your code ignore it and run the random function again you can use mt_rand() than rand() for better random values | |
hello everyone I have the same problem that they talked about here before in this old thread: [url]http://www.daniweb.com/web-development/php/threads/94707[/url] I tried to find any solution for it but I couldn't this one "UPDATE table SET col_value = col_value + 1" doesn't work , so I hope that any one can tell … | |
Re: for random name you can use rand function: replace this line in your code : $target = $target . basename( $_FILES['photo']['name']); with this : $target = $target . basename( rand(1, 999).rand(1000,9999 ).rand(1, 999)."_".$_FILES['photo']['name']); and you can change this random values as you like in the same way you can use … |
The End.