Jump to content

openskies2009

New Members
  • Posts

    1
  • Joined

  • Last visited

openskies2009's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have a simple MYSQL DB listing 30 articles. We would like to display ten different articles every six months. How could we do this? This is the code which I have so far which isn't near completion but my hang was to set the pointer back to the start of the articles when reached 30, also to increment the start by 10 every six months. $unitStart ='1474657057'; $nowTime = time(); $interPassed = round( $nowTime - $unitStart ); $secToChange = '15552000'; $intv= $interPassed / $secToChange; $str = 'SELECT * FROM tc_articals LIMIT 0,6'; $result = mysql_query($str)or die(mysql_error());
×
×
  • 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.