Jump to content

Use one database for several php functions?


Delta223

Recommended Posts

Hi all,

 

I'm currently still in the learning phase for php, but I was able to install a contact form script and attach it to a database. It works perfectly so I gave myself a pat on the back for figuring it out.

 

The next thing I would like to do is setup my copyright year to automatically update. I believe the code for this is

 

<?php echo date("Y"); ?>

 

However I'm sure sure how to connect this second function to a database yet, or if I even need to. Can someone advise me on this?

Why would you have that year updated? The year when displayed along side the copyright notice is simply the year when it was registered or claimed.

 

Oh, and to answer your question, there's no need to use a database for something like this.

Why would you have that year updated? The year when displayed along side the copyright notice is simply the year when it was registered or claimed.

 

Oh, and to answer your question, there's no need to use a database for something like this.

 

The site looks more up to date if the copyright is the current year.

 

Where does php pull the information from then? Surely it must come from somewhere?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.