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




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


11 responses to “PHP & MySQL Tutorial 44 – Generating unique IDs and random strings (uniqid and md5 functions)”

  1. 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

Leave a Reply