Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesProgramming Theory

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 25th, 2005, 01:25 AM
exequor exequor is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 190 exequor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 51 sec
Reputation Power: 2
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

Reply With Quote
  #2  
Old July 25th, 2005, 10:00 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,729 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 1 h 32 m 7 sec
Reputation Power: 6
RE: Big project

Where is the session and post data?

Reply With Quote
  #3  
Old July 26th, 2005, 05:51 PM
exequor exequor is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 190 exequor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 51 sec
Reputation Power: 2
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

Reply With Quote
  #4  
Old July 26th, 2005, 10:03 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,729 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 1 h 32 m 7 sec
Reputation Power: 6
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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > Big project


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT