[php] foto album met tekst ?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Picture Date</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="picturedate.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function canManipulateImages() {
if (document.images)
return true;
else
return false;
}
function loadPosterImage(imageURL) {
if (gImageCapableBrowser) {
document.imagePoster.src = imageURL;
return false;
}
else {
return true;
}
}
gImageCapableBrowser = canManipulateImages();
// -->
</SCRIPT>
<body>
<table border="0" cellpadding="0" width="100%" height="313">
Code (php)
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
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
<?
$pfoto = $pData['foto'];
echo "<tr><td align=\"center\" width=\"75%\">";
echo "<IMG NAME=\"imagePoster\" SRC=\"$pfoto\">";
echo $foto;
echo "</td>";
echo "<td align=\"left\" width=\"25%\">tekst</td>";
echo "</tr></table>";
echo "<table border=\"0\" cellpadding=\"0\" width=\"100%\" height=\"100\">";
echo "<tr>";
$fSelect = "SELECT * FROM fotoalbum WHERE uid = '$pid'";
$fQuery = mysql_query($fSelect);
echo "<td widht=\"3%></td>";
echo "<td width=\"98%\" align=\"center\">";
while($fData = mysql_fetch_array($fQuery))
{
$foto = $fData['foto'];
//$plaatje = getimagesize("$foto");
//$plaatje[0]
//$plaatje[1]
echo "<A HREF=\"$foto\" onClick=\"return(loadPosterImage('$foto'))\">";
echo "<IMG SRC=\"$foto\" BORDER=0 ALIGN=TOP WIDTH=60 HEIGHT=80></A> ";
}
echo "</td><tr></table>";
?>
$pfoto = $pData['foto'];
echo "<tr><td align=\"center\" width=\"75%\">";
echo "<IMG NAME=\"imagePoster\" SRC=\"$pfoto\">";
echo $foto;
echo "</td>";
echo "<td align=\"left\" width=\"25%\">tekst</td>";
echo "</tr></table>";
echo "<table border=\"0\" cellpadding=\"0\" width=\"100%\" height=\"100\">";
echo "<tr>";
$fSelect = "SELECT * FROM fotoalbum WHERE uid = '$pid'";
$fQuery = mysql_query($fSelect);
echo "<td widht=\"3%></td>";
echo "<td width=\"98%\" align=\"center\">";
while($fData = mysql_fetch_array($fQuery))
{
$foto = $fData['foto'];
//$plaatje = getimagesize("$foto");
//$plaatje[0]
//$plaatje[1]
echo "<A HREF=\"$foto\" onClick=\"return(loadPosterImage('$foto'))\">";
echo "<IMG SRC=\"$foto\" BORDER=0 ALIGN=TOP WIDTH=60 HEIGHT=80></A> ";
}
echo "</td><tr></table>";
?>
</td>
</tr>
</table>
Er zijn nog geen reacties op dit bericht.