super danke ich bedanke mich ich möchte nur eines die summe soll unten in die tabelle da steht schon gesamt und da drunter muss das rein
okay ich danke euch aber ich glaube das ich es aufgeben weil das alles net funzt also nochma danke für die hilfe
|
PHP Quellcode
|
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
33
34
35
36
37
38
|
<?php
if(!defined('pkFRONTEND') || pkFRONTEND!='public')
die('Direct access to this location is not permitted.');
if(!getrights('user'))
{
pkEvent('access_refused');
return;
}
$sname = pkgetconfig('site_name');
$query = "SELECT _spi,_nr,_pos,_st,_ver,_mkw,_bem SUM(_mkw) AS gesamtMarktwert FROM ".phpkit_spieler." WHERE _ver LIKE 'SV Werder Bremen' ORDER BY _nr ";
$test = $SQL->query($query);
while ($row = $SQL->fetch_array($test)){
eval("\$lm10_row.=\"".pkTpl("lm10_row")."\";");
}
echo'<table class="heads" align="center" width="100%" cellspacing="0" cellpadding="4">
<tr>
<th class="heads" width="20%" nowrap="nowrap" align="left">Spieler</th>
<th class="heads" width="5%" nowrap="nowrap" align="left">Position</th>
<th class="heads" width="5%" nowrap="nowrap" align="left">Stärke</th>
<th class="heads" width="25%" nowrap="nowrap" align="left">Verein</th>
<th class="heads" width="15%" nowrap="nowrap" align="left">Marktwert in Euro</th>
<th class="heads" width="25%" nowrap="nowrap" align="left">Bemerkung</th>
</tr>
'.$lm10_row.'
<tr>
<th class="heads" width="20%" nowrap="nowrap" align="left"></th>
<th class="heads" width="5%" nowrap="nowrap" align="left"></th>
<th class="heads" width="5%" nowrap="nowrap" align="left"></th>
<th class="heads" width="25%" nowrap="nowrap" align="left">Gesamt</th>
<th class="heads" width="15%" nowrap="nowrap" align="left">'.$lm11_row.'</th>
<th class="heads" width="25%" nowrap="nowrap" align="left"></th>
</table>';
?>
|
das ist mein aktueller code und was dabei raus kommt seht ihr hier
test