Ver Mensaje Individual
  #32 (permalink)  
Antiguo 05/02/2014, 11:30
RyanTylor
 
Fecha de Ingreso: noviembre-2013
Ubicación: New York
Mensajes: 114
Antigüedad: 10 años, 6 meses
Puntos: 1
Pregunta Respuesta: Crear el siguiente array con php

Ups perdon no sabia que no se podia bueno disculpame aca te dejo lo que actualmente tengo:

Aca genero un array:
Código PHP:
$tikets "<a href='#' rel='".$IdGames."-".$IdAgents."' onClick='openInfoWager(this);'>".$counterTickets."</a>"
array_push($arrGamesPrint, array("Time"          => $anterior['Time'],  
                                 
"NumGame" => $anterior['NumGame'],  
                               
"Teams"       => $anterior['Teams'],  
                               
"Score"        => $anterior['Score'],  
                               
"Tickets"      => $tikets,  
                               
"Risk"          => $counterRisk,  
                               
"WinLoss"   => $counterWinLoss)); 
Una vez finalizado la costruccion del array me queda en este formato:
Cita:
Array
(
[0] => Array
(
[Time] => 06:54:21
[NumGame] => 26117/26118
[Teams] => 1H AC CHIEVO VERONA@1H SS LAZIO ROMA
[Score] => 0 - 1
[Tickets] => <a href="#" rel="376234-752_5718" onclick="openInfoWager(this);">4</a>
[Risk] => 80
[WinLoss] => 897.29
)

[1] => Array
(
[Time] => 12:49:38
[NumGame] => 26233/26234
[Teams] => 1H ATHLETIC BILBAO@1H REAL MADRID
[Score] => 0 - 0
[Tickets] => <a href="#" rel="376177-752_57182623_5714_5718_2623" onclick="openInfoWager(this);">21</a>
[Risk] => 963.55
[WinLoss] => 229.27
)

[2] => Array
(
[Time] => 08:49:44
[NumGame] => 26225/26226
[Teams] => 1H BETIS SEVILLA@1H RCD ESPANYOL BARCELONA
[Score] => 0 - 0
[Tickets] => <a href="#" rel="376169-752_57182623_5714_5718_26235718_2621" onclick="openInfoWager(this);">6</a>
[Risk] => 109
[WinLoss] => 0
)

[3] => Array
(
[Time] => 06:48:55
[NumGame] => 26129/26130
[Teams] => 1H CALCIO CATANIA@1H AS LIVORNO
[Score] => 0 - 0
[Tickets] => <a href="#" rel="376246-752_57182623_5714_5718_26235718_26212623" onclick="openInfoWager(this);">2</a>
[Risk] => 8
[WinLoss] => 0
)
)
Quiero ordenarlo por el Time una vez ordenado recorrerlo e imprimir una tabla de esta manera:
Código PHP:
$response .= "<tr>"
$response .= "<td>".$arrGamesPrint['Time']."</td>"
$response .= "<td>".$arrGamesPrint['NumGame']."</td>"
$response .= "<td>".$arrGamesPrint['Teams']."</td>"
$response .= "<td>".$arrGamesPrint['Score']."</td>"
$response .= "<td>$arrGamesPrint['Tickets']"
$response .= "<td>$".$arrGamesPrint['Risk']."</td>"
$response .= "<td>".$arrGamesPrint['WinLoss']."</td>"
$response .= "</tr>"
Me ayudas amigo ??