kot, pies, ryba, surykatka, dzik, słoń <<< i z tych wyszczególnionych chcę alby wylosowały się dwie różne.
Z góry dzięki

<?php $input = array("Alcatel", "Apple", "Emporia", "HTC", "Huawei", "LG", "Motorola", "Nokia", "RIM", "Sagem", "Samsung", "Sony Ericsson"); ?>
<?php $input = array("Alcatel", "Apple", "Emporia", "HTC", "Huawei", "LG", "Motorola", "Nokia", "RIM", "Sagem", "Samsung", "Sony Ericsson"); $telefon = $input[$rand_keys[0]]; $telefon2 = $input[$rand_keys[1]]; ?> <center> <h1> </center> </h1> <?php $baza = "ranking_tel"; $tabela = "telefony"; if($_GET["glos"] == Alcatel ); // Alcatel to przykładowy telefon jak narazie ?>
$connection = mysql_query("insert into tabela SET kolumna = '$telefon', kolumna = '$telefon2'")or die (mysql_error());