Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Wykres
post
Post #1





Grupa:
Postów: 0
Pomógł:
Dołączył: --

Ostrzeżenie: (0%)
-----


Witam, mam tablicę z danymi, i musze zrobić z tego wykrres

[php:1:b01a6fdeb0]
<?php
$tabela[1]=345;
$tabela[2]=322;
$tabela[3]=24;
$tabela[4]=11;
$tabela[5]=23;
$tabela[6]=453;
$tabela[7]=12;
$tabela[8]=1246;
$tabela[9]=2334;
$tabela[10]=987;
$tabela[11]=456;
$tabela[12]=345;
$tabela[13]=347;
$tabela[14]=222;
$tabela[15]=333;
$tabela[16]=444;
$tabela[17]=212;
$tabela[18]=32;
$tabela[19]=22;
$tabela[20]=11;
$tabela[21]=10;
$tabela[22]=1;
$tabela[23]=234;
$tabela[24]=56;
$tabela[25]=33;
$tabela[26]=66;
$tabela[27]=100;
$tabela[28]=500;
$tabela[29]=200;
$tabela[30]=11;
$tabela[31]=19;

$linie = count($tabela);

for($index=1;$index<=$linie;$index++){
$wynik=$tabela[$index]6;
echo "<img src="pionowe.gif" width=15 height=$wynik> ";
}


?>

<table height=400 width=100% border=1>
<tr><td>
d
</tr></td>
</table>
[/php:1:b01a6fdeb0]

Problem w tym, ze musi się on zmieścić w ramce która ma 400 pixli, ktos robił już takie cos questionmark.gif
Go to the top of the page
+Quote Post

Posty w temacie
- Anonymous   Wykres   15.05.2004, 19:39:41
- - Majdan   Ten kod jest nijaki. Twoje pytanie jest dziwne, bo...   15.05.2004, 19:53:11
- - Jojo   Możesz przeskalować dane w tablicy w ten sposób: ...   15.05.2004, 20:12:12


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 14:43