"; $cards[$count] = $number; $randnum = rand(0,100); if($count != 0 && $count != 1) { if(($randnum % 2) != 0) { $cards[$count] = $cards[$count]."r"; } } $query = "SELECT * FROM $table WHERE (card = '$cards[$count]')"; $result = @mysql_db_query($db, $query); $r = mysql_fetch_array($result); if(!$result) { $query_error = "Failed at the mysql_db_query."; echo"$query_error"; exit(); } else { $indice = 0; $thecards[$count][$indice] = $r["title"]; $test2 = $r["card"]; //echo"$test2 <-------no array value test <--->cards count --> $cards[$count]
"; $test = $thecards[$count][$indice]; //echo"$test <-------test
"; $indice++; $thecards[$count][$indice] = $r["description"]; $indice++; $thecards[$count][$indice] = $r["thumb"]; $indice++; $thecards[$count][$indice] = $r["limage"]; } // $cards[$count] = $number; // echo"$cards[$count]<---CARD $count <---COUNT
"; $count++; $index = 0; } $count = 0; $index = 0; $printcards = implode (":", $cards); ?>