IPB
Your Ad Here


Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Need help with coding.
Misha Singh
post Nov 3 2009, 07:45 PM
Post #1


Advanced Member
***

Group: Members
Posts: 7,885
Joined: 23-November 08
Member No.: 6,521



I'm working on a project. I have a pool test log I use and I am now making it out of php and mysql.

I am new to php and sql but I have most of it working. But I have ran into a few issues.

In my Index.php file i have an includesfor a
connect.php, a header and 31 includes for day1-31

This This brings out a nice monthly tables. In each day php file is a simple table that pulls data from the database and an update link. Then it goes to an update file where I can change the values.

It works.. But I have found a problem. What happens when the month is over?
The way i have is set up, I would have to change the include days in the index.php.

Is there a way I can have a drop down on the index to select the month and year. Once selected, it would only use the include files. January for Jan, February for feb.. and so on..

I'm not sure how to approach this, but I was thinking an If statement.
If I am correct in this, how would I go about writing this out?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st November 2009 - 06:58 PM
Your Ad Here