Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Odczyt z tablicy, array();
Deusx
post
Post #1





Grupa: Zarejestrowani
Postów: 126
Pomógł: 2
Dołączył: 27.08.2006

Ostrzeżenie: (0%)
-----


  1. $Count = 0;
  2. $a = 0;
  3. $aUzyteIp = array();
  4. $aNazwa = array();
  5. echo '<center><br><br><table width=400><tr><td class=c colspan=3>Multi konta</td></tr>';
  6. while ( $TheUser = mysql_fetch_array($Last15Mins) ) {
  7.  
  8.  
  9. if (in_array($TheUser['user_lastip'],$aUzyteIp)) {
  10. $status = doquery("SELECT `status` FROM {{table}} WHERE `username` ='".$TheUser['username']."' OR `nick1` ='".$TheUser['username']."'","zglos",true);
  11. if($status['status'] == 0) {
  12. echo '<tr><th>Multi </th>','<th>', $TheUser['user_lastip'] ,'</th><th> ', $TheUser['username'], '</th><th>',$aNazwa[$a] , '</th></tr>' ;//$aNazwa[$a] ma wyswietlic nazwe z tablicy
  13. }
  14. } else {
  15. $aUzyteIp[] = $TheUser['user_lastip'];
  16. $aNazwa[$a] = $TheUser['username']; //tutaj ma zapisac nazwe
  17. }
  18.  
  19.  
  20. $Count++;
  21. $a++;
  22. }
  23. echo '</tr></table>';


Jednak w wyświetlaniu "$aNazwa[$a]" nie ma nic. Bardzo proszę o pomoc, co robię źle?

Ten post edytował Deusx 31.05.2010, 00:34:07
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 18.09.2025 - 16:13