Jump to content
php.lv forumi

Tabulas Ziimeeshana Ar Php


bassz

Recommended Posts

  • 4 months later...

tas tā:

$n=17;

 

$c=0;

echo '<table>';

while($c<=$n)

{

echo '<tr>';

for($d=1;$d<=10;$d++)

{

echo '<td>'.($result['bilde']?'<img src="'.$result['bilde'].'">':' ').'</td>';

$c++;

}

echo '</tr>';

}

echo '</table>';

 

bet tas CSS arīdzan nav slikts

Link to comment
Share on other sites

  • 4 months later...

Nezinu vai derees tachu ja gribi fotogaleriju uztaisiit izmanto shamo scriptu:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
</head>

<body>
<?
echo "<table cellspacing=\"5\" bgcolor=\"#EEEEDD\"><tr><td>";
$bigdir = "lielaas";
$smalldir = "mazaas";
$d_handle=opendir($smalldir);
$col_id = 1;
while (($filename=readdir($d_handle))!= false)
{
if (strlen($filename) > 3)
{
echo '<a href="'.$bigdir.'/'.$filename.'"><img border=\"0\" src="'.$smalldir.'/'.$filename.'"></a>';
if ($col_id++ % 4 == 0)
{
echo '</td></tr><tr><td>';

}
else
{
echo '</td><td>';
}
}
}
echo '</td></tr></table>';
?>
</body>
</html>

thats all folks!!! B)

Link to comment
Share on other sites

  • 1 year later...

pat jau mekleet ir slinkums. vai kaut bik pastaigaat pa forumu.

http://php.lv/f/index.php?showtopic=2935

 

vaidzeetu taadu sisteemu, kad registreejaas, tad uzreiz lietotaajam tiek aizsuutiita privaata zinja kuraa ir liidziigs teksts:

pirms ko jautaa, paskaties šeit http://php.lv/f/index.php?showtopic=2935 , jo iespeejams ka atbilde uz tavu jautaajumu ir tur!

Link to comment
Share on other sites

×
×
  • Create New...