資源簡介
PHP生成二維碼,并把參數(shù)傳入數(shù)據(jù)庫,最后輪詢數(shù)據(jù)庫檢測登陸,簡單易用
代碼片段和文件信息
????tle>Test tle>
????ta?charset=“utf-8“>
????require_once(“mysql_connect.php“);
????$randnumber?=?““;
????????for($i=0;$i<9;$i++){
????????$randnumber.=rand(19);
????????}
????mysql_query(“insert?into?login_record?(randnumber)?VALUES?(‘$randnumber‘)“);
?>
“>
“>
ript>
????function?polling(){
????????var?xmlHttp;
????????if(window.xmlHttpRequest){
????????????xmlHttp=new?xmlHttpRequest();
????????}else{
????????????xmlHttp=new?ActiveXobject(“Microsoft.xmlHTTP“);
????????}
????????xmlHttp.onreadystatechange=function(){
????????????if(xml
評論
共有 條評論