資源簡介
PHP生成二維碼,并把參數傳入數據庫,最后輪詢數據庫檢測登陸,簡單易用
代碼片段和文件信息
????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
- 上一篇:php自動生成縮略圖“thumb.php”
- 下一篇:php圖書管理系統實驗報告
評論
共有 條評論