Projekt

Obecné

Profil

Stáhnout (1.76 KB) Statistiky
| Větev: | Tag: | Revize:
1
#!c:/Php/php.exe
2
<HTML>
3
<HEAD>
4
<META content=text/html; http-equiv=Content-Type>
5
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
6
<TITLE>Nastaveni hesel s obrazky</TITLE>
7
</HEAD>
8
<body>
9
<h2><center> obrazky </center></h2>
10
<hr>
11
<?
12
$status = true;
13
do
14
{
15
	@$res = Pg_Connect ("user=vviewer dbname=klinopis");
16
//  @$res = MySQL_Connect("localhost");
17
  if (!$res):
18
    echo "Nepoda?ilo se p?ipojit k datab?zi!";
19
    break;
20
  endif;
21
//  MySQL_Select_DB("klinopis");
22
  @$result = Pg_Exec("select * from images");
23
//  @$result = MySQL_Query("select * from images");
24
  if (!$result):
25
    echo "Do?lo k chyb? p?i zpracov?n? SQL dotazu!";
26
    break;
27
  endif;
28
//  echo "<FONT color=#000099 face=Verdana size=2>There was found ".Pg_Num_Rows($result)." sign variants included in the Corpus for Graphemical Analysis.\n</FONT><BR>";
29
//  echo "<FONT color=#000099 face=Verdana size=2>There was found ".MySQL_Num_Rows($result)." sign variants included in the Corpus for Graphemical Analysis.\n</FONT><BR>";
30
  echo "<BR>";
31
  echo "<table border=0 bgcolor=\"#ecece6\" cellspacing=1 cellpadding=5>";
32
  echo "<tr bgcolor=#94B6BD align=\"center\"><b><td><b>Borger's No.</b></td><td><b>Sign</b></td><td><b>File Name</b></td></tr>";
33
//  $zdroj = .$images;
34
  while ($row = Pg_Fetch_Array($result,0))
35
//  while ($row = MySQL_Fetch_Array($result))
36
    echo "<tr><td>".$row["bcislo"]."</td><td>
37
<IMG SRC=".$row["images"].">
38
</td><td>".$row["images"]."</td></tr>\n";
39
//    echo "$bcislo";
40
//"<img src=\"images\">"
41
//"<img src=\"$zdroj\">
42
// <td>&nbsp; <a href=\"./deleteg1.php?koho=$ncislo\">delete</a> &nbsp;</td>"."<td><a href=\"./editg1.php?co=$ncislo\">edit</a> &nbsp;"."</td>
43
  echo "</table>";
44
//    echo ".$row["<A HREF=\"images\">\"images\"</A>"].";
45
} while (false);
46
  Pg_Close($res);
47
//  MySQL_Close($res);
48
?>
49
</body>
50
</html>
(25-25/31)