在文稿每页一页的汇辑中,我有以下代码,以查找优先用户的语言档案:
if ($_SESSION[ id ]) { // if logged in
$language = mysql_result(mysql_query("SELECT default_lang FROM employees WHERE id = $_SESSION[id] "), 0);
include "languages/".$language.".php";
} else { // If not logged in, use system default language
$language = mysql_result(mysql_query("SELECT config_value FROM system_config WHERE config_name = language "), 0);
include "languages/".$language.".php";
}
我的问题是,在访问者重新翻一页时,这种问问问问问是否每过一次? 看到某一页的我的片面问询总数最容易些,我常常在论坛中看到这一点,例如:20次在二十次秘密中回答。