-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshow.php
More file actions
39 lines (23 loc) · 772 Bytes
/
show.php
File metadata and controls
39 lines (23 loc) · 772 Bytes
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
34
35
36
37
38
39
<?php
//include 'images.php';
$db = mysqli_connect("localhost","root","","photos");
$sql= "SELECT * FROM images";
$result = mysqli_query($db, $sql);
echo "FEED!";
while ($row = mysqli_fetch_assoc($result))
{
// echo "<img src = 'uploads/".$row['image']."' >";
// echo "<img src = '".$row['image']."' >";
echo "<div id='img_div'>";
echo "<img src = 'uploads/".$row['image']."'width = 200 height = 200/ >";
echo "<p>".$row['text']."</p>";
echo "<p>".$row['colour']."</p>";
echo " <style>
body {
background-color: <?php <p>".$row['colour']."</p> ?>;
}
</style> ";
echo "<th colspan=\"8\"><hr width\"100%\"></th>";
echo "</div>";
}
?>