Jump to content

scott botkins

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

scott botkins's Achievements

Member

Member (2/5)

0

Reputation

  1. I was wondering if this is possible? I'm wanting to use php to countdown 40 seconds and then refresh to a new page. I don't want to use javascript or the html meta tag.
  2. I already have database holding the users who registered on the website. What I'm wanting to do next is create a trivia game which is pretty simple, it will hold unlimited questions each with 4 options. When users go to the page to play, it will show 1 question at a time, if they get it right they will get 5 points. I would there points to be stored in a database and I plan on having a page showing the top 10 users in points. Would this pretty simple to make? What would you recommend using or doing?
  3. Below is something I'm doing myself, it's what I'm looking for. I don't have it working yet but maybe someone can help me. <?php $date1 = mktime(0,0,0,09,01,2007) - mktime(0,0,0,09,10,2007); $date2 = "432000"; if ($date1 < $date2) { echo "Not Expired"; } else { echo "Expired"; } ?>
  4. I would use your code I just don't know where to insert the date fields that I listed a few posts ago.
  5. This script doesn't use mysql or any kind of db lol. It creates a static php page, the only way I can do this is using a timestamp of some sort.
  6. This isn't exactly for blogs. This is for something else, it creates a .php page when information is submitted. What I am looking for is something when you insert the date 08-26-07 it will show something for 5 days, after 5 days that button will expire and not show anymore.
  7. I'm not using a database, this code must be placed on a .php page.
  8. So I put <? php datediff(now(),'<Field: Year>-<Field: TwoDigitDay>-<Field: TwoDigitMonth>') >5 ?> Right?
  9. Lol, I'm always coming out with these elaborate ideas, then there turns out to be like.. a one line method of doing it. You should be in the PHP, not the CMS ?? Yea I'm in php, I'm just lost on how exactly to use your code because I'm new at using this. For example my cms template variables are <Field: TwoDigitMonth>-<Field: TwoDigitDay>-<Field: TwoDigitYear> will display 08-26-07 if a post was posted today. I'm lost on where I'm suppose to put those variables I just listed in your code. Thanks for the help on this so far, appreciate it.
  10. The only thing I'm able to output using my cms software is the date format
  11. Do you know where I could find such a code to do this? I'm not well advanced in php just yet.
  12. I'm wanting to have a button on my website for each blog post, however if the blog post is 5 days old it will not display the button on the page. What would be the best way to do this?
  13. I've created a database for data to be stored. Each one is stored by an id such as 000001 for the first one. However when I run the search on a internet browser and type in the 000001 it shows up as just "1" instead of "000001" so I'm guessing I have the attributes wrong in database. In phpmyadmin for the field id I have it set for TEXT and not null, do you know what it should be set to fix this error? Thanks!
  14. I get the following error when I use your code... Parse error: parse error, unexpected ';' in /designs/gdogs/index.php on line 17
×
×
  • 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.