I need to create unique id on user's every click link. Let I have a code
<a class="popup-text" href="examplelink&aff_sub=<?php echo $up_id; ?>" data-toggle="modal">Upto Rs.10000 Cashback LED TVs
+ Get additional upto Rs. 4 Cashback from afft</a>
when user click on that link $up_id
should be automatically generated. $up_id
should change every time when user click on that link.
$up_id
comes from following code
<?php
$up_id=md5(uniqid(rand(), true));
?>
but I am getting same id every time.