我这么写的 setcookie("count",$id."$".getenv('REMOTE_ADDR'));if ($_COOKIE["pcount"]!=$id."$".getenv('REMOTE_ADDR')) { mysql_db_query($dbname,"update news set times=times+1 where id=$id"); }好像无效啊
我这么写的 setcookie("count",$id."$".getenv('REMOTE_ADDR')); if ($_COOKIE["count"]!=$id."$".getenv('REMOTE_ADDR')) { mysql_db_query($dbname,"update news set times=times+1 where id=$id"); } 好像无效啊
setcookie("count",$id."$".getenv('REMOTE_ADDR'));if ($_COOKIE["pcount"]!=$id."$".getenv('REMOTE_ADDR'))
{
mysql_db_query($dbname,"update news set times=times+1 where id=$id");
}好像无效啊
setcookie("count",$id."$".getenv('REMOTE_ADDR')); if ($_COOKIE["count"]!=$id."$".getenv('REMOTE_ADDR'))
{
mysql_db_query($dbname,"update news set times=times+1 where id=$id");
} 好像无效啊
mysql里面每个记录对应一个timemysql_db_query($dbname,"update news set times=times+1 where id=$id");