Ciao, e grazie mille per il tuo aiuto..
Tuttavia non riesco a farlo andare, sarà che non conosco le classi..
mi potresti dare una mano?
ecco cosa ho fatto:
L'output che ricevo è questo:codice:$query = "SELECT nome FROM team WHERE serie='1'"; $ris = mysql_query($query, $conn) or die("Errore nella query: " . mysql_error()); unset($query); $row = mysql_fetch_array($ris); // $row dovrebbe essere l'array in questione, contenente 10 elementi da abbinare $c = &new Combinatory('-'); // note that separator('-') is optional $matches = &$c->result( $row, 2, "Cn,k" ); // 2 is the class or combination possibility, Pn is the method // METHODS TO CALCULATE: Pn - Pn(k) - Dn,k - D'n,k - Cn,k - C'n,k echo count( $matches ); echo '<pre>'; var_dump( $matches ); echo '</pre>';
sapresrti dirmi come andare avanti??codice:array(1) { [0]=> string(5) "1111-" }

Rispondi quotando