I actually want to generate random password using PHP uniqid() function
$randomPassword = uniqid();
But doing this gives me an error:-
Unknown column '4f74456589d51' in 'field list'
What is the reason?
I am inserting this value in my database:-
$SQL = sprintf("INSERT INTO cust (password) VALUES (%s)", myFunction($randomPassword, "text"));
1 Answer