Jump to content

time and $password


smrpgx

Recommended Posts

run this script every hour with a cron job.

[code]
<?php

$newpassword = rand(100000,999999);

$conn = @mysql_connect('host','username','pw') or die(mysql_error());
$db = @mysql_select_db('database',$conn) or die(mysql_error());

$sql = "update tablename set password = '$newpassword' ";
$query = mysql_query($sql, $conn) or die(mysql_error());

mysql_close($conn);

?>
[/code]
Link to comment
https://forums.phpfreaks.com/topic/9084-time-and-password/#findComment-33435
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.