Displaying All Record from Table

Published November 17, 2017 by Anil Kumar Vishwakarma

<?php
include(“db.php”);

$all_employees = “SELECT * FROM employees “;
$employee = mysqli_query($sql, $all_employees);
//print_r($employee);
?>

<!DOCTYPE html>
<html lang=”en”>
<head>
<title>All Employees Records</title>
<meta charset=”utf-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
<link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css”&gt;
https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js
</head>
<body>

All Employees Records

0){
while($result = mysqli_fetch_assoc($employee)){
?>

Employee ID First Name Last Name Father Name Salary Edit Delete
“>Edit ” onclick=”return confirm(‘Do you realy want to delete this record?’)”>Delete

</body>
</html>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: