PDA

View Full Version : New events won't update:-(


painterskip
01-14-2008, 10:03 PM
I purchased and installed Easy PHP on a clients website sometime last year. He's been happily using it ever since. However, he's come across a problem and I can't figure out why it's happening.

I have it set up so that he has 3 monthlies across the top. They have changed appropriately. However, even though he has updated his events for 2008, about 15 or so going until March 2008, the only thing that appears are all the events for 2007.

You can view the page here....

http://www.rogerharrismusic.com/schedule.php?mo=1&yr=2008

Were we supposed to change something as of Jan. 1st? As you can see, the last event is on Dec. 31st, 2008. I logged into his event manager and he has another 15 or so entered for 2008, as I mentioned, but they are not showing up.

Am I forgetting something? It's been awhile since I set it up:-)

Thanks in advance,

Skip Dyrda
www.emurals.com

Brian
01-14-2008, 10:10 PM
We're going to need to see the source code for your page. You've probably hard-coded the $yr variable to 2007 for the List Mode.

painterskip
01-14-2008, 10:19 PM
Arrgghh! I just checked and I did....I think:-) And my apologies for posting in the wrong section I guess.....I'm usually not that sloppy.

I'll paste the source below....
********
Well...the forum software wouldn't allow me to paste all the source code, but I found the following, which was the only instance I could find of the text "2007"

**********
</table>
</td></tr></table><table width="580px" border="0" cellspacing="0" cellpadding="0"> <tr>
<td align=left width="33%"><a href="schedule.php?mo=10&amp;yr=2007" class=navTableText><img src="arrow-left.gif" width="20" height="11" border="0"></a></td>
<td align=center width="34%"><a href="schedule.php?mo=01&amp;yr=2008" class=navTableText><img src="arrow-center.gif" width="17" height="11" border="0"></a></td>
<td align=right width="33%"><a href="schedule.php?mo=4&amp;yr=2008" class=navTableText><img src="arrow-right.gif" width="20" height="11" border="0"></a></td>
**************

I'm not sure this is what you meant though....

Skip
</tr>

painterskip
01-14-2008, 10:23 PM
OK....got it. I was forgetting about the PHP file. It was there that I had indeed had the year 2007 entered into the code. I changed it 2008 and viola! Success:-)

Thank you so much.

Skip

ve9gra
01-15-2008, 07:12 AM
Actually, don't hardcode the year... otherwise you'll have the same problem next year.

Can you post the bit of PHP code where you were setting the $yr variable? We should be able to provide you with something dynamic.

painterskip
01-15-2008, 03:04 PM
Hey, Thanks. I'll try to attach the file now....

Skip

Brian
01-15-2008, 04:57 PM
Try changing the $listYear to

$listYear = date("Y");

painterskip
01-15-2008, 05:04 PM
That seems to work just fine. Thanks very much.

Skip
www.emurals.com