Welcome Guest, Not a member yet? Register   Sign In
Need help with finishing touches for multi-day and multi-same-day events in Calendar please :)
#4

[eluser]Kinsbane[/eluser]
Is there a way to find out what position a current element is in an array?

If I run a print_r() on my cal_data array, I have some days where the array for the day looks like this:
Code:
[3] => Array
        (
            [1] => /events/show/1274
            [0] => /events/show/1277
        )

It would be great if I could have the program detect that event #1277 is in the 2nd position of the array (even though its index says 0) and use that to calculate a height position within the day-cell of the table to keep everything in line.


Messages In This Thread
Need help with finishing touches for multi-day and multi-same-day events in Calendar please :) - by El Forum - 03-30-2010, 12:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB