-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
33 lines (33 loc) · 1.31 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<head>
<title>PHP | Upload binary files to a directory and store target file path in MySQL</title>
<meta charset="UTF-8">
<meta name="description" content="Example of upload and store image file in database and server using PHP and MySQL">
<meta name="keywords" content="PHP, MySQL, Upload, Store">
<meta name="author" content="JORGE LUIS AGUIRRE MARTINEZ">
<meta name="publish_date" property="og:publish_date" content="2023-03-15T17:00:00-0600">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.image-gallery {
text-align:center;
}
.image-gallery img {
padding: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
border: 1px solid #FFFFFF;
border-radius: 4px;
margin: 20px;
}
</style>
</head>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
Select Image File to Upload:
<input type="file" name="file">
<input type="submit" name="submit" value="Upload">
</form>
<div class="image-gallery">
<?php require_once __DIR__ . '/viewImages.php'; ?>
</div>
</body>
</html>