supernal Posted March 24, 2011 Report Share Posted March 24, 2011 Problēma ar php print opciju. Kad izvada img tad aiz tā nezinu kapēc parāda ciparu "1" { echo Print '<img src="images/success_icon.jpg">', ' Your message has been sent!'; } Ieteikumi? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted March 24, 2011 Report Share Posted March 24, 2011 Kas ir echo() un tad print()? Nu pamati... pamati ir jāzin!!! echo '<img src="link-to-image.png" alt="" />'; P.S. Skatlis '1' tiek izvadīts, jo echo() izvada to, ko esi tai licis izvadīt - sākumā print(), tad stringu. Print() atgriež skaitli. Quote Link to comment Share on other sites More sharing options...
supernal Posted March 24, 2011 Author Report Share Posted March 24, 2011 (edited) Kas ir echo() un tad print()? Nu pamati... pamati ir jāzin!!! echo '<img src="link-to-image.png" alt="" />'; P.S. Skatlis '1' tiek izvadīts, jo echo() izvada to, ko esi tai licis izvadīt - sākumā print(), tad stringu. Print() atgriež skaitli. Uii, no sākuma tā mēģināju, bet img nebiju ielicis iekš ' ', negāja, tapēc meklēju, kā vēl to varētu izdarīt. Muļķis. Paldies! Edited March 24, 2011 by supernal 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.