Site Age

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Site Age

    Insert this in index.php
    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$siteage = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE id=&#39;9&#39;"));
    $sage = time() -$siteage[0];
    $stage = ceil($sage/(24*60*60));
    echo "Site Age: $stage Days
    ";</div>

    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

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>--
    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 &#39;&#39;,
    `value` varchar(200) NOT NULL default &#39;&#39;,
    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,&#39;siteage&#39;,&#39;1&#39;);
    /*!40000 ALTER TABLE `ibwf_settings` ENABLE KEYS */;
    UNLOCK TABLES;
    </div>


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

    Comment

    Working...
    X