Project / Support Center
Welcome, Guest. Please login or register. January 21, 2019, 07:08: PM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  php related  |  Topic: How many years ago was something 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: How many years ago was something  (Read 2045 times)
admin
Administrator
******
Offline Offline

Posts: 147


« on: January 02, 2018, 10:14: PM »

We needed to show on a dynamic basis so web site story would update automatically how many easy a go some was established.

We put this - like this on the page

<?php $current= date('Y');
$yearsago=$current-1672 ;?>
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>

In order to echo the results on the page we put this at the correct location in the text

Was established <?php echo $yearsago ?> years ago
« Last Edit: August 03, 2018, 02:05: PM by admin » Report to moderator   Logged

The Unknown Webmaster
Pages: [1] Go Up Send this topic Print 
Web Global Net Web Application & Web Development Project Center  |  Technical Issues  |  php related  |  Topic: How many years ago was something « previous next »
Jump to:  


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!