From your phpMyAdmin, click the SQL tab, paste the following into the textbox, changing DB_PREFIX_ to whatever your database prefix is and click "Go". Please note that this table structure is compatible with Zen Cart v1.3.9h, having been pulled from that version's SQL initialization file; other Zen Cart versions might have an updated structure:
Code:
#
# Table structure for table 'whos_online'
#
DROP TABLE IF EXISTS DB_PREFIX_whos_online;
CREATE TABLE DB_PREFIX_whos_online (
customer_id int(11) default NULL,
full_name varchar(64) NOT NULL default '',
session_id varchar(128) NOT NULL default '',
ip_address varchar(15) NOT NULL default '',
time_entry varchar(14) NOT NULL default '',
time_last_click varchar(14) NOT NULL default '',
last_page_url varchar(255) NOT NULL default '',
host_address text NOT NULL,
user_agent varchar(255) NOT NULL default '',
KEY idx_ip_address_zen (ip_address),
KEY idx_session_id_zen (session_id),
KEY idx_customer_id_zen (customer_id),
KEY idx_time_entry_zen (time_entry),
KEY idx_time_last_click_zen (time_last_click),
KEY idx_last_page_url_zen (last_page_url)
) ENGINE=MyISAM;
Bookmarks