我有这个功能,它返回Parse error: syntax error, unexpected T_RETURN
. 我会很感激你帮助我。谢谢。
function getPin(){
return substr(str_shuffle('ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ123456789123456789123456789'), 0, 6); ;
}
function validPin(){
$pre = getPin();
$sql = mysql_query("SELECT * FROM `images` WHERE `pin` = '$pre' ");
$count = mysql_num_rows($sql);
if($count > 0){
return validPin();
}else{
return $pre;
}
}