Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
[PHP] Loop until false
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="NSA" data-source="post: 214682" data-attributes="member: 10034"><p>Hello,</p><p> </p><p>So basically I'm trying to identify users other than using their IP addresses, so I wanted to give them random strings which would each be unique.</p><p> </p><p>With this in mind, I need to figure a way of re-generating a string each time the same one already exists in the database... something like in the diagram below:</p><p> </p><p><img src="http://s16.postimg.org/8xf9gc8hh/logic.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> </p><p>So basically I got up to the part where I check if the string exists in the database then I return true if it does and false if it does not, so I need to loop until said variable returns false.</p><p> </p><p>How can I do this?</p></blockquote><p></p>
[QUOTE="NSA, post: 214682, member: 10034"] Hello, So basically I'm trying to identify users other than using their IP addresses, so I wanted to give them random strings which would each be unique. With this in mind, I need to figure a way of re-generating a string each time the same one already exists in the database... something like in the diagram below: [IMG]http://s16.postimg.org/8xf9gc8hh/logic.png[/IMG] So basically I got up to the part where I check if the string exists in the database then I return true if it does and false if it does not, so I need to loop until said variable returns false. How can I do this? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
[PHP] Loop until false
Top