Site Age

Started on the old forum in January 2009 · view the original in the archive · old links redirect here

1 reply · 477 views · started 17 years ago · 1 min read

2 participants
kaibaspoon Developer · 63 posts #1

Insert this in index.php CODE$siteage = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE id='9'")); $sage = time() -$siteage[0]; $stage = ceil($sage/(246060)); echo "Site Age: $stage Days ";

All you have to do is wright the SQL for this ag ill just give it to you. LIKE ALWAYS. Insert this in you SETTINGS table and it should do the trick

CODE-- Table structure for table ibwf_settings

DROP TABLE IF EXISTS ibwf_settings; CREATE TABLE ibwf_settings ( id int(10) NOT NULL auto_increment, name varchar(30) NOT NULL default '', value varchar(200) NOT NULL default '', PRIMARY KEY (id), UNIQUE KEY name (name) ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;

Dumping data for table ibwf_settings

LOCK TABLES ibwf_settings WRITE; /*!40000 ALTER TABLE ibwf_settings DISABLE KEYS /; INSERT INTO ibwf_settings (id, name, value) VALUES (9,'siteage','1'); /!40000 ALTER TABLE ibwf_settings ENABLE KEYS */; UNLOCK TABLES;

Rider Developer · 128 posts #2

Nice tanx allot bru ur codes come really in handy guess u can give a whole site of updates by u lol

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close