Hi my code can be found at:
http://nopaste.php-q.net/194079
now the problem i am having is that i have managed to print a table like:
| days | sun | Mon| Tue | Wed | Thurs | Fri | Sat|
10:00-10:30
10:30-11:00
11:00-11:30
11:30-12:00
12:00-12:30
12:30-13:00
13:00-13:30
13:30-14:00
14:00-14:30
14:30-15:00
15:00-16:30
16:30-17:00
17:00-17:30
Now what i wanted to do with my code was read from a text file a list of 1 and 0's to an array, making each character its own element and then printing each element to match with a time and date.
However i cant figure out how to do this.
The data in the text files is:
aval.txt:01010101000000000101010101100000000000101010100000
and
times.txt:
10:00-10:30
10:30-11:00
11:00-11:30
11:30-12:00
12:00-12:30
12:30-13:00
13:00-13:30
13:30-14:00
14:00-14:30
14:30-15:00
15:00-16:30
16:30-17:00
17:00-17:30
Any help, improvements to the code or suggestions how to do this better would be really appreciated.