HighHobbies.com Posted April 6, 2004 Posted April 6, 2004 This is my counter.php code: <?php /* $Id: counter.php,v 1.5 2003/02/10 22:30:52 hpdl Exp $ 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))); ?> I want it to have 17,000 hits right now and count up from there and i want it to say 1,7000 Requests Since August 1st, 2003 and count up from there. my site for tests right now is www.highhobbies.com/store I had 17000 requests but i changed osc sites
HighHobbies.com Posted April 6, 2004 Author Posted April 6, 2004 Or can i just have the date on the left of the bar and on the right just say 17000 and counts up?
♥yesudo Posted April 6, 2004 Posted April 6, 2004 look at the table 'counter' Your online success is Paramount.
♥yesudo Posted April 6, 2004 Posted April 6, 2004 in your database there is a table called counter which holds the figure and date you want to change. Your online success is Paramount.
HighHobbies.com Posted April 6, 2004 Author Posted April 6, 2004 How do i access the db? Sorry Im out of it today...
♥yesudo Posted April 6, 2004 Posted April 6, 2004 I use phpmyadmin (came as standard for me) - check with your host. Your online success is Paramount.
HighHobbies.com Posted April 6, 2004 Author Posted April 6, 2004 I have cpanel and have no idea where this would be...
HighHobbies.com Posted April 6, 2004 Author Posted April 6, 2004 ok im in phpmy admin, lemme see if i can get it
HighHobbies.com Posted April 6, 2004 Author Posted April 6, 2004 Yesudo... Where would i do this through phpmyadmin? I have never used phpmyadmin before... If it's easier you can aim me at highhobbies if you have a minute
Recommended Posts
Archived
This topic is now archived and is closed to further replies.