Dzieki za link do manuala.
Powolio zaczynam sie do niego przyzwyczajać, pomimo ze w wiekszości jest w j. UK.
Znalazłem prosty skrypt:
<?php
$image = "adres/obrazka";
$height = $size[1];
$width = $size[0];
if ($height > 100)
{
$height = 100;
$percent = ($size[1] / $height);
$width = ($size[0] / $percent);
}
else if ($width > 130)
{
$width = 130;
$percent = ($size[0] / $width);
$height = ($size[1] / $percent);
}
echo "<a href="$image"><img src="$image" height="$height" width="$width" /></a>"; ?>
Dodałem do niego jeszcze
a hrefZrobilem z powyzszego kodu funkcje i chce ja teraz wstawic zamiast <img src... > w lini 6
<?php
//łączy sie z baza danych , pobiera dane z bazy poprzez mysql_query i mysql_fetch_
array :
$obrazek = $ilp['obrazek'];
echo " <div style="width
: 500px
; height
: auto
; margin
: 4px 0px 0px 75px
; border
:1px dotted silver
;"> <div style="width: auto; float: left; margin-right: 5px; margin-left: 5px;">
<a href=index.php?page=kibic&akcja=Personalia&ksywa=$ksywa>$ksywa</a>
<br /> Postów $postow <br /><img src="$obrazek"> <br />Dołączył $dolaczyl</div>
<div style="width: auto; float: justify;">Dodano $data_kom <h1>$tytul_kom </h1> $txt</div>
<br style="clear: both;" />
</div> ";
?>