I was coding a auth in PHP and C++ but PHP is what I need help with so here is the code inserting the data:
$c_con->query("INSERT INTO keys(key, days, used) VALUES ('".strtoupper(c_security::random_string(22))."', '".c_security::anti_sql_string($_POST["daysammount"])."', '0')");
Now I wanted to display the data that I just inserted in the database any help?
I've also tried:
echo strtoupper(c_security::random_string(22))