Forum Moderators: coopster

Message Too Old, No Replies

Can I do this with PHP?

         

Rightz

12:18 pm on Nov 21, 2006 (gmt 0)

10+ Year Member



Basically on my site I have to input loads of promo codes.

At the moment I open up each html page and change it manually. As you can imagine this takes ages!

I'd like to be able to input all the codes on one page, replacing them when they run out and the info be automatically showing on the relivant pages.

How can I do this? Php? databases? Where do I start?

barns101

1:24 pm on Nov 21, 2006 (gmt 0)

10+ Year Member



You have a couple of options available to you:

1) Store the codes in a database and have PHP retrieve the data. There are some library threads that I believe will show you how to do this.

2) Store the codes in simple text files and then use the PHP include() [php.net] function to show them on your page.

Personally I would go with the database option.