Jump to content

sort array_multisort


MoisesZaragoza

Recommended Posts

Thanks i am trying it out

how do i get my new content out?

i am gettting a error that reads

Warning: array_multisort() [function.array-multisort]: Array sizes are inconsistent in /home/content/m/p/m/mpmiami2/html/admin/secure/index_.php on line 79

This is what i have

 
<?php
                            $array_OriginalOrder = array();
                            $i=0;
                            while ($i <= $count_Team-1):
                                // GET TEAM 
                                $TeamID = $array_Team['TeamID'][$i];
                                // Get Total 
                                getAllTOTALByTeam($TeamID);
                                // PopulateAttay
                                $array_OriginalOrder['TeamID'][$i]                  = $TeamID;
                                $array_OriginalOrder['count_getAllTOTALByTeam'][$i] = $count_getAllTOTALByTeam;
                                
                                echo($array_OriginalOrder['TeamID'][$i]);
                                echo(" "); 
                                echo($array_OriginalOrder['count_getAllTOTALByTeam'][$i]);
                                echo("<br /> "); 
                            $i++;
                            endwhile;
                                echo(" <br /> "); 
                            array_multisort($array_OriginalOrder['count_getAllTOTALByTeam'], SORT_ASC, $array_OriginalOrder);
                                echo("<br /> "); 
                            $i=0;
                            while ($i <= $count_Team-1):
                                echo($array_OriginalOrder['TeamID'][$i]);
                                echo(" "); 
                                echo($array_OriginalOrder['count_getAllTOTALByTeam'][$i]);
                                echo("<br /> "); 
                            $i++;
                            endwhile;
                        ?>

Out Put

1 4

2 0

3 1

4 0

5 16

6 5

7 0

8 2

9 0

10 0

11 0

12 0

13 0

14 8

15 0

16 5

 

 

Warning: array_multisort() [function.array-multisort]: Array sizes are inconsistent in /home/content/m/p/m/mpmiami2/html/admin/secure/index_.php on line 79

 

1 4

2 0

3 1

4 0

5 16

6 5

7 0

8 2

9 0

10 0

11 0

12 0

13 0

14 8

15 0

16 5

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.