Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Random Password in PHP
SUBMITTED BY:
Guest
DATE:
June 11, 2013, 9:30 p.m.
FORMAT:
PHP
SIZE:
292 Bytes
Raw
Download
Tweet
HITS:
1168
Go to comments
Report
<?php
require_once
"database_connections.php"
;
$uniq
=
uniqid
();
$pass
=
substr
(
md5
(
$uniq
),
0
,
10
);
$username
=
mysql_real_escape_string
(
$_POST
[
"username"
]);
mysql_query
(
"INSERT into TABLE (username, password) values ('
$username
', md5('
$pass
'))"
);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus