forSilence Posted July 22, 2010 Report Share Posted July 22, 2010 (edited) Tātad veidoju atsevišķu integrētu IPB lietotaju lapu. Un saskāros ar problēmu. Kad izvada avatarus tos parāda un attēlo, bet kā sataisīt tā, kad nav avatara viņš izmet bildi noavatar. Zinu ka kaut kas uz šo pusi, bet nezinu ko darīt tālāk. if { echo("<img src=".$rows['avatar_location']." />"); } else{ echo ("<img src='noavatar.png' />"); } Man avatarus izvada tikai caur bilžu linkiem. Edited July 22, 2010 by forSilence Quote Link to comment Share on other sites More sharing options...
101111 Posted July 22, 2010 Report Share Posted July 22, 2010 if($rows['avatar_location'] != '') { echo("<img src=".$rows['avatar_location']." />"); } else{ echo ("<img src='noavatar.png' />"); } Quote Link to comment Share on other sites More sharing options...
forSilence Posted July 22, 2010 Author Report Share Posted July 22, 2010 Man viņš izmet bildi noavatar, kautarī man ir avatars. Quote Link to comment Share on other sites More sharing options...
101111 Posted July 22, 2010 Report Share Posted July 22, 2010 Vai tiešām bildes faila atrašanās vieta atrodas $rows['avatar_location'] ? Quote Link to comment Share on other sites More sharing options...
forSilence Posted July 22, 2010 Author Report Share Posted July 22, 2010 (edited) Sorry, bet man fail, nebiju uzlicis lai izvada no datus bāzes. Viss strādā varat Tc. Edited July 22, 2010 by forSilence Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.