0
<?php
if(isset($_POST['submit']))
{
    require_once 'connect.php';
    $query=mysql_query("SELECT 'admin_name.admin_name','admin_name.admin_lastname','admin_name.admin_creattime',
        'admin_detail.admin_pass','admin_detail.admin_phone','admin_detail.admin_email','admin_detail.admin_gender'
FROM admin_name,admin_detail ");
    if(!$query)
    {
        die('nt good fail to select'.mysql_error());
    }
    else{
        while($row=mysql_fetch_row($query)):
             $name  = $row['admin_name'];
             $last  = $row['admin_lastname'];
            $acctime    = $row['admin_creattime'];
             $pass   = $row['admin_pass'];
             $phone   = $row['admin_phone'];
             $mail   = $row['admin_email'];
             $gen   = $row['admin_gender'];
             echo  $name." ".$last." ".$acctime." ".$pass." ".$phone." ".$mail." ".$gen;
            endwhile ;
    }
}
echo "Admin is Created Successfully"; 
 ?>
 <html>
 <head>
    <title>adminpanal</title>
 </head>
 <body>
    <form method="post" action="admindetail.php">
      <input type="hidden" name="submit">
      <input type="submit" name="submit" value="click here">to see detail of your's
    </form>
 </body>
 </html>
2
Contributors
1
Reply
13
Views
4 Years
Discussion Span
Last Post by pritaeas
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.