0
I have a table with the following structure: id - email - key_de_active
I need to popular the key_de_active column with a random key (I already have the script to create this key), only it’s like, 200 lines, as I can populate each one with its random activation key (can’t have repeated)?
I tried with while, but it didn’t work out and I just let it go.
Not being repeated will depend on the script you have already made (which you could have posted). For popular, it could rather be by
while
, searching an array for the reference list of records that need to enter this key. Paste your code, it’s important to see where you’re going wrong. Sometimes it’s silly that you’re wrong, so it’s important to understand that you’re going by the right logic.– rbz
You’re going to have to put code, otherwise we have no way of knowing where the problem might be!
– João Martins