jakebur01 Posted February 27, 2009 Share Posted February 27, 2009 I am trying to get a number between 1 and 160 for my calendar to select events from a table that has 160 rows. I cannot use rand() because I need the events to be the same for everyone that views the calendar. The code below works ok, only it groups the events together alphabetically. Like all of the c's and d's will be in the same month although it is grabbing from every other row. $calcmonth=date("m"); $numberto=$calcmonth+$calcmonth+$day_num*2; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.