-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php01
executable file
·58 lines (50 loc) · 1.06 KB
/
home.php01
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
<?php
$Table = "data";
$result = mysql_query("SELECT * FROM $Table where id <'3'");
$rownumber=0;
while($row = mysql_fetch_array($result))
{
if($rownumber%2==0) $layout="RowEvenCH";
else
{
$layout="RowOddCH";
}
$rownumber++;
$item[0] = "";
$item[0] .= " <div id=$layout >";
if($row['title']!=null)
{
$item[0] .= "<h1>".$row['title'].":"." ". $row['sub_title']."</h1>";
}
$item[0] .= $row['text']."<br/><br/><div id=$layout >" ;
$item[0] .= "</div>";
$item[0] .= "</div>";
echo $item[0];
}
?>
<?php
$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))
{
if($rownumber%2==0) $layout="RowEvenCH";
else
{
$layout="RowOddCH";
}
$rownumber++;
// $item[0] = "";
echo " <div id=$layout >";
echo "<td>"." <img src=\"" . $PathImage . $row['image'] . "\" width = $ImageSize > ";
//echo $row['caption'] ;
echo "</div>";
}
echo "</tr>";
echo "</table>";
?>