Hello, I'm a newbe here and about PHP; be patient please :-)
I have a MySQL table with 15000 rows; I need to populate a field of it (varchar(15)
) - to be used in a way similar to a primary key – with the uniqid()
PHP function.
The algorithm is:
- positioning to the first row (record);
- generating a value with the
uniqid()
function; - updating with it an empty field of that record;
All of those three steps till the end of the table (all of the records).
What is the PHP code to do all of that?