Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~6K People Reached
Favorite Forums
Favorite Tags
php x 6

3 Posted Topics

Member Avatar for dalip_007

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

Member Avatar for urtrivedi
0
158
Member Avatar for Green-z

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 …

Member Avatar for Green-z
0
83
Member Avatar for justted

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 …

Member Avatar for Green-z
0
5K

The End.