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;