Viewing file: slike.php (1.63 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<meta http-equiv="Content-Language" content="en-us">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="50%">
<p align="center"><b><font size="5">Slika</font></b></td>
<td width="50%" align="left"><b><font size="5">Naziv</font></b></td>
</tr>
<tr>
<td width="50%" align="center"><SCRIPT language="php">
mysql_connect (localhost, us10505a, proba);
mysql_select_db (db10505a);
$result = mysql_query ("SELECT id,description FROM images ORDER BY id desc ");
if ($row = mysql_fetch_array($result)) {
do {
$imageID=$row["id"];
print ("<a name=\"$imageID\"></a>");
print ("<img border=\"1\" src=\"imageShow.php3?id=$imageID\">");
print ("<br>");
print ("<font size=\"4\"><b>");
print $row["description"];
print ("</font><br></b>");
print ("<br>");
} while($row = mysql_fetch_array($result));
} else {print "Nema clanaka!";}
</SCRIPT>
</td>
<td width="50%" valign="top" align="left">
<SCRIPT language="php">
mysql_connect (localhost, us10505a, proba);
mysql_select_db (db10505a);
$result2 = mysql_query ("SELECT id,description FROM images ORDER BY id desc ");
if ($row = mysql_fetch_array($result2)) {
do {
$imageID=$row["id"];
print ("<font size=\"3\"><font color=\"Navy\"><a href=\"slike.php#$imageID\">");
print $row["description"];
print ("</a></font>");
print ("<br>");
} while($row = mysql_fetch_array($result2));
} else {print "Nema clanaka!";}
</SCRIPT>
</td>
</tr>
</table>
|