$md = md5("abcdef");
$handle = mysql_connect('localhost','discuz15','discuz15');
mysql_select_db ('x15' );
$sql = 'SELECT * from pre_ucenter_members where `password`=md5(concat("' . $md . '",`salt`))';
echo $sql . "\n
";
$result = mysql_query($sql);
$arr = array();
while ($row = mysql_fetch_assoc($result)) {
$arr[] = $row;
}
var_dump($arr);
mysql_close($handle);
?>
阅读(2880) | 评论(0) | 转发(0) |