mysql - while and foreach correct php -


Need help correcting the code

  $ aaa = do_mysql_query ("ticket Select the ticket from the number WHERE ticketed = ''. $ Coin ['ticket']. "'Order via SAC') or SQLR (__ file__, __LINE__); $ Rows = array (); While ($ line = mysqli_fetch_assoc ($ aaa)) {$ rows [] = $ line ['number']; } $ Array_numbers = Explosion ("|", $ coin ['result']); // 31 | 22 | 65 | 9 | 5 | 10 | 55 | 51 | 21 | 63 33 | 67 | 4 | 45 50 | 19. 62 foreign currency ($ array_nank as $ kannom) {foreach ($ rows as dollar r) {// 7, 8 or 9 nums if ($ r == $ keno_num) {resonates & lt; Td class = \ "table_my_tickets \" & gt; & Gt; Font color = \ "red \" & gt; & Lt; B & gt; ". $ R." & Lt; / P & gt; & Lt; / Font & gt; & Lt; / TD & gt; ";} Else {echo" & lt; Td class = \ "table_my_tickets \" & gt; "$ r." & Lt; / Td> ";}}}  

The problem that prints me the number of results * the number of tickets I (number result = 17 numbers) And (number of tickets = 7,8 or 9).

This needs 7,8 or 9 numbers and some of them are red with (if number == $ Keno_num)

Thanks for the right

If I'm reading this, you only need a loop Is not two nested loop in proxy code:

  foreach ($ array_numbers $ keno_num) {if (in _array ($ keno_num, $ rows)) {... number is on result array, draw red number} other {... no match, regular number does not come}}  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -