|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Big project
I am in the process of making a timetable generator for secondary/high schools. I have what I've done so far on www.themodule.net/ttgen
I have developed an algorithm to assign teachers to classes, etc. without clashes and more smart features, but I'm not at that stage yet. My current problem is getting the data from a a language i developed, time table data entry language (TTDEL). I don't know much about languages but it is pretty simple. I'm using alot of loops and explodes (in PHP) to separate the info but it's messy at this point in time. Can someone help me or show me how to go about getting the info? I have included the print_r($_session) and print_r($_post) info. what i want to achieve is this: teacher 1 ---+ physics=>3g computer science=>5k teacher 2 ---+ maths=>1d english=>1r and so on |
|
#2
|
||||
|
||||
|
RE: Big project
Where is the session and post data?
|
|
#3
|
|||
|
|||
|
RE: Big project
you have to use some sample data on www.themodule.net/ttgen and when you reach the third page you will see the arrays
|
|
#4
|
||||
|
||||
|
RE: Big project
Which is post and which is session? Also I will need to see the code and the forms to understand what is going on and where the problem is. It is kinda like looking at a tail and trying to discribe the horse that goes with it.
If you are simply trying to break down some input and create a multi dimensional array. Do a very strict check on the user input to make sure it is in the format you want. Explode (as you have been doing) and check each step to make sure you are getting what you expect. Then create the array. Debug, track and trace the data and the logic. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Programming Theory > Big project |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|