各位網友好
我用artisteer做了一個靜態網頁...(還在熟悉語法..所以只能用這套寫..)
想請問如果我要在首頁底部宣告地方加入計數器,那html語法該怎麼新增呢?
假如計數器我拿e-commerce內的counter.php
語法如下
<?php
/*
$Id: counter.php 1739 2007-12-20 00:52:16Z hpdl $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
$counter_query = tep_db_query("select startdate, counter from " . TABLE_COUNTER);
if (!tep_db_num_rows($counter_query)) {
$date_now = date('Ymd');
tep_db_query("insert into " . TABLE_COUNTER . " (startdate, counter) values ('" . $date_now . "', '1')");
$counter_startdate = $date_now;
$counter_now = 1;
} else {
$counter = tep_db_fetch_array($counter_query);
$counter_startdate = $counter['startdate'];
$counter_now = ($counter['counter'] + 1);
tep_db_query("update " . TABLE_COUNTER . " set counter = '" . $counter_now . "'");
}
$counter_startdate_formatted = strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, substr($counter_startdate, 4, 2), substr($counter_startdate, -2), substr($counter_startdate, 0, 4)));
?>
不曉得語法要怎麼新增才可以讓html網頁讀這php的counter來統計我的累計人數呢?
求助各位網友..拜託...
另外在網頁起始人數設定的部分,也麻煩各位網友們指導,原本網站累計人數有三百多快四百萬人...
所以想要改起始值,拜託各位!!!

X