Skip to content

Commit bb04ca2

Browse files
committed
Class 11 added
1 parent 771d01d commit bb04ca2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2259
-0
lines changed
Binary file not shown.
6 Bytes
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
$conn = mysqli_connect('localhost','root','','skit_crud');
4+
5+
if(!$conn)
6+
{
7+
die('Database connection failed').mysqli_connect_error();
8+
}
9+
// Print host information
10+
//echo "Connect Successfully. Host info: " . mysqli_get_host_info($conn);
11+
?>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?php
2+
include "connection.php";
3+
?>
4+
<!DOCTYPE html>
5+
<html lang="en">
6+
<head>
7+
<meta charset="UTF-8">
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
9+
<title>php crud</title>
10+
<style>
11+
table{
12+
width: 80%;
13+
margin: auto;
14+
border-collapse: collapse;
15+
}
16+
th,td{
17+
border:1px solid #444;
18+
padding: 12px;
19+
}
20+
</style>
21+
</head>
22+
<body>
23+
24+
<h3>Users List</h3>
25+
<hr>
26+
<table>
27+
<tr>
28+
<th>S/N</th>
29+
<th>Name</th>
30+
<th>Email</th>
31+
<th>Mobile</th>
32+
<th>Address</th>
33+
<th>Action</th>
34+
</tr>
35+
<?php
36+
37+
$slq ="SELECT * FROM users";
38+
$result = mysqli_query($conn,$slq);
39+
if($result){
40+
while ($row = mysqli_fetch_assoc($result)) {?>
41+
<tr>
42+
<td><?php echo $row['id'];?></td>
43+
<td><?php echo $row['name'];?></td>
44+
<td><?php echo $row['email'];?></td>
45+
<td><?php echo $row['mobile'];?></td>
46+
<td><?php echo $row['address'];?></td>
47+
<td>
48+
<a href="">Edit</a>
49+
<a href="">Delete</a>
50+
</td>
51+
</tr>
52+
<?php
53+
}
54+
}
55+
56+
?>
57+
</table>
58+
59+
</body>
60+
</html>

Class-11-06-09-2020/php-mysql-crud-application/.idea/composerJson.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Class-11-06-09-2020/php-mysql-crud-application/.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Class-11-06-09-2020/php-mysql-crud-application/.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Class-11-06-09-2020/php-mysql-crud-application/.idea/php-mysql-crud-application.iml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Class-11-06-09-2020/php-mysql-crud-application/.idea/workspace.xml

Lines changed: 54 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)