hello, how is the correct way to view the images in my airline awards, because I have added several images in my awards but only you can see letters, but the images do not appear.
I can not find the solution for any site
The image is well placed.
http://www.mundoairlines.org/webmaster/phpvms/lib/images/award/1000hours.jpg
this is the code I have put in profile_main.tpl
<img src=“<?=php echo $award->image?>”/> alt=“<?php echo $award->descrip?>” />
?>
<ul>
<?php foreach($allawards as $award){ ?>
<li><?php echo $award->name ?></li>
<?php } ?>
Try to search for your question next time
I did this already but still not working
You need to put
<img src="<?=php echo $award->image?>" alt="<?php echo $award->descrip?>" />
inside your foreach loop, it is above it and probably still commented out.
I copied and pasted this line of poost and get this error
Parse error: syntax error, unexpected '<'in / home / Mundoo / public_html / webmaster / phpvms / lib / skins / ObsessBlue / profile_main.tpl on line 99
I do not know anything about php, if can tell me exactly how I have to do would be much appreciated
line 99 is:
<img src="<?=php echo $award->image?>" alt="<?php echo $award->descrip?>" />
STILL WITH THIS PROBLEM AND IF NOT I BE ABLE TO SETTLE
I do not understand programming and follow what is said in the forum as I can
<p>
<strong>Mis Medallas</strong><br />
<?php
if(!$allawards)
{
echo 'No awards yet';
}
else
{
/* To show the image:
<img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" />
*/
?>
<ul>
<?php foreach($allawards as $award){ ?>
<li><?php echo $award->name ?></li>
<?php } ?>
</ul>
<?php
}
?>
</p>
this is what I have in profile_main.tpl
if I delete “/ * To show the image,” and “* /”
I get this error: Parse error: syntax error, unexpected ‘<’ in /home/mundoair/public_html/webmaster/phpvms/lib/skins/ObsessBlue/profile_main.tpl on line 100
and the line 100 is: <img src=“<?php echo $award->image?>” alt=“<?php echo $award->descrip?>” />
can help and tell me the steps?
Thanks
I finally succeeded. The solution found here
Thanks