[請益] 請問有幾秒後,重複自動刪除資料庫資料??
請問一下大家們:
假設我想設一個每五秒就對資料庫進行刪除動作,請問有方法嗎?!該怎麼改?!
<?php
class chk
{
var $userName = "root";
var $password = "12345";
var $hostName = "localhost";
function logTest()
{
$ee="123";
$mylink = mysql_connect($this-> hostName, $this-> userName,
$this-> password);
mysql_select_db("webmember", $mylink);
mysql_query("set character set big5");
$SQL = "select * From memberdata Where memId";
$RS=mysql_query($SQL);
if ($Fields=mysql_fetch_array($RS))
{
if ($Fields["memId"]==$ee)
{
return "yes";
}
else
{
return "no";
}
}else{
return "no thia id:{$ID}";
}
}
}
?>
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.68.59.235
→
11/30 12:57, , 1F
11/30 12:57, 1F
推
11/30 13:09, , 2F
11/30 13:09, 2F
→
11/30 13:12, , 3F
11/30 13:12, 3F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章
7
15