• Tuesday , 23 October 2018

PHP & MySQL Tutorial 44 – Generating unique IDs and random strings (uniqid and md5 functions)

Code Canyon



This tutorial explains how to generated unique ID strings using the uniqid() function and how to generate random strings using the md5 function. Sample code: …

Original source

3d Ocean

Related Posts

11 Comments

  1. Aishwarya Mehra
    October 2, 2018 at 12:13

    👌👌 way of explaining 🌟

  2. Ryan Remember
    October 2, 2018 at 12:13

    how for only number?
    not alfanumeric

  3. Foodie KukBooks
    October 2, 2018 at 12:13

    This is also possible with php I found this https://bit.ly/2Lg3Gxq

  4. Shashank Sharma
    October 2, 2018 at 12:13

    How to make some numbers constant in random generation like in your video (i.e. 570db)????
    Is there any code to make user-defined type?

  5. Chinnikrishna Seerapu
    October 2, 2018 at 12:13

    It is very helpful. You can also refer this website for some useful information:
    http://ahex.co/how-to-generate-uuid-in-laravel/

  6. Ola Williams
    October 2, 2018 at 12:13

    Will this uniq id show in the url when you try log in to a site?

  7. Ryan Byrne
    October 2, 2018 at 12:13

    Super helpful – thanks!

  8. Federico Vázquez
    October 2, 2018 at 12:13

    What does "it shouldn't be used for security purposes" means?? Can we use it to replace "id" autoincremented field on a MySQL table?

  9. Stefan Paulus
    October 2, 2018 at 12:13

    Hello Daniel,
    i am not a coder, but in need help.

    What should I do if I want to save the generated IDs? Is it possible that only one ID is generated and stored per IP address? I am looking for a solution when a user comes to a web page that this ID is automatically generated.

    Thank you!
    Stefan

  10. Chidi Udemba
    October 2, 2018 at 12:13

    thanks. It was helpful

  11. Edson Cardoso
    October 2, 2018 at 12:13

    thank you so much, this video really helped me.

Leave A Comment

You must be logged in to post a comment.