How to assign id to user in php ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to assign id to user in php ?

26th May 2019, 9:51 AM
Ali
Ali - avatar
2 Answers
+ 16
You can use sessions or cookies for this purpose. If you use a database for storing users, it is better to use AUTOINCREMENT clause to automatically assign ids for users.
26th May 2019, 11:56 AM
Igor Makarsky
Igor Makarsky - avatar
0
Got your point thnx.
27th May 2019, 3:52 AM
Ali
Ali - avatar