Jump to content

Recommended Posts

Posted

Hello For my pilot centre I need the code for the information of that pilot to display would anybody be able to provide the code for the following

Name

Pilot Id

Rank

Email

Hub

Location

Hours

Flights

Miles Flown

Thanks! :)

  • Moderators
Posted

Hello For my pilot centre I need the code for the information of that pilot to display would anybody be able to provide the code for the following

Name

Pilot Id

Rank

Email

Hub

Location

Hours

Flights

Miles Flown

Thanks! :)

What do you have in pilot profile right now? are using the default pilot profile or you're using skins?

  • Moderators
Posted

I am changing the pilot profile, but I would need that info

The first 3 is showing right now as default for the rest you will need to pull the data out of tables, do you know php?

  • Moderators
Posted

no :(

Okay! the info can be pulled out using $userinfo->pilotid, pilotname pilotlastname and so on. If you want the entire code and you have no knowledge of PHP then you're gonna have to try to learn some small things then get help from the others to make your thing. How did you make that table in the page you showed?

Posted

Okay! the info can be pulled out using $userinfo->pilotid, pilotname pilotlastname and so on. If you want the entire code and you have no knowledge of PHP then you're gonna have to try to learn some small things then get help from the others to make your thing. How did you make that table in the page you showed?

Word

Posted

Pilot Name

<?php echo $userinfo->firstname . ' ' . $userinfo->lastname; ?>

Pilot ID

<?php echo $pilotcode; ?>

Pilot Rank

<?php echo $userinfo->rank;?>

To show the rank image instead

<img src="<?php echo $userinfo->rankimage ?>" />

Pilot Hub

<?php echo $userinfo->hub;?>

Pilot Flown Hours

<?php echo $userinfo->totalhours; ?>

Pilot Total Flights

<?php echo $userinfo->totalflights?>

  • Like 2
  • Moderators
Posted

Pilot Name

<?php echo $userinfo->firstname . ' ' . $userinfo->lastname; ?>

Pilot ID

<?php echo $pilotcode; ?>

Pilot Rank

<?php echo $userinfo->rank;?>

To show the rank image instead

<img src="<?php echo $userinfo->rankimage ?>" />

Pilot Hub

<?php echo $userinfo->hub;?>

Pilot Flown Hours

<?php echo $userinfo->totalhours; ?>

Pilot Total Flights

<?php echo $userinfo->totalflights?>

Nice Jeff, the thing is that he said he doesn't know PHP, so I guess he won't be able to use these unless we give him the whole coding structure.

Posted

in that case, he'll just have to brush up on some HTML coding then. Here is an example of how you would place it in there.

<table>
 <thead>
     <th>Pilot ID</th>
 </thead>
   <tbody>
     <td><?php echo $pilotcode; ?></td>
 </tbody>
</table>

  • Like 1

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...