<?php while($result=mysql_fetch_array($query)){ $av1=mysql_query('select name from avatars where login=\''.$result['podgladajacy'].'\''); ?> <tr> <td> <div class="shade"><img src="<?php echo ADRES_STRONY; ?>files/photos/avatar/<?php if($user_avatar=mysql_fetch_array($av1)){ echo $user_avatar['name'];} else {echo 'noavatar.png';} ?>" height="100" width="100"></div>
nie wiem dlaczego otrzymuje taki błąd :
WARNING: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in line 62 of file podgladacz.php
dziekuje za pomoc.