Generating Unique link for each record in PHP