-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php2
executable file
·73 lines (51 loc) · 1.2 KB
/
home.php2
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
$Table = "data";
$result = mysql_query("SELECT * FROM $Table where id ='2'");
while($row = mysql_fetch_array($result))
{
$layout="RowOddCH";
$item[0] = "";
$item[0] .= " <div id=$layout >";
if($row['title']!=null)
{
$item[0] .= "<h1>".$row['title'].":"." ". $row['sub_title']."</h1>";
}
$item[0] .= $row['text'] ;
// $item[0] .= "</div>";
echo $item[0];
}
$Table = "images";
$HeaderHeigth="100%";
$ImageSize="75px";
$PathImage = "../Pictures/";
$result = mysql_query("SELECT * FROM $Table where user_id ='1'");
$rownumber=0;
echo "<table border='0'>";
echo "</tr>";
while($row = mysql_fetch_array($result))
{
$rownumber++;
echo "<td>"." <img src=\"" . $PathImage . $row['image'] . "\" width = $ImageSize > ";
//echo $row['caption'] ;
//echo "</div>";
}
echo "</tr>";
echo "</table>";
echo "</div>";
$Table = "data";
$s1 = "SELECT * FROM $Table where id ='1'";
$result3 = mysql_query("$s1");
while($row3 = mysql_fetch_array($result3))
{
$layout="RowEvenCH";
$item[0] = "";
$item[0] .= " <div id=$layout >";
if($row3['title']!=null)
{
$item[0] .= "<h1>".$row3['title'].":"." ". $row3['sub_title']."</h1>";
}
$item[0] .= $row3['text'] ;
$item[0] .= "</div>";
echo $item[0];
}
?>