<?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>
grouptechindore 0 Newbie Poster
pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.