Jump to content

Pilot Awards on seperate page


miniarma

Recommended Posts

Ok trying to get the pilots awards on a seperate page instead of being on the main profile page.

Having a bit of trouble as its not feching data at all and ive even added awards to my pilot profile aswell.

Here is the code im using

<div id="mainbox">

<div class="indent">
<p><?php echo $userinfo->firstname . ' ' . $userinfo->lastname; ?></p>
<table>
<tr>
<td valign="top" nowrap>
	<p>
		<strong>My Awards</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>
</tr></table>

       </div>

       </div>

If anyone could help me I would be grateful. Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...