Warum wird hier nicht die Anzahl der Datensätze angezeigt ???
http://www.rok.formativ.net/menue2.php
Hier der Code:
// ausführen einer SQL Anfrage
$result = mysql_query("SELECT Fonds AS 'Fonds',Konto AS 'Konto',Kürzel AS 'Kürzel',Sachb AS 'Sachb.',Kuerzel AS 'Kuerzel',Name AS 'Kontakt',Telefon AS 'Telefon',Fax AS 'Fax',Email AS 'Email',Dok_Nr AS 'Vollm.' FROM dritt_fonds AS A LEFT OUTER JOIN dritt_kontakt AS B ON A.id_dritt_kontakt=B.id_kontakt LEFT OUTER JOIN unterschrift AS C ON A.id_unterschrift=C.id_unterschr LEFT OUTER JOIN mitarbeiter AS D ON A.id_sachb=D.id_mitarb ORDER BY $sort ASC");
$anzahl = mysql_num_rows($result);
$result2 = mysql_query("SELECT Fa1,id_kunde FROM kunde");
echo '<CENTER><FONT SIZE=5 FACE=ARIAL><B>Fondsdatenbank 1.2</B></FONT></CENTER>';
echo '<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=0 WIDTH=100%>';
echo '<TR BGCOLOR="#e0e0e0">';
echo '<TD height="43" valign="middle" align="left" width="93" rowspan="2"> <FONT SIZE=2 FACE=ARIAL COLOR="#FF0000">'.$anzahl.' Einträge</FONT></TD>';
echo '<TD height="43" valign="middle" align="center" width="280" rowspan="2"><a href="/union.php?sort=Fonds"><img border=0 src="/union.gif" align="absmiddle" width=128 height=25></a> <a href="/topten_dritt.php?sort=Performance&ud=DESC"><img border=0 src="/topten.gif" align="absmiddle" width=128 height=25></a></TD>';
echo '<TD height="43" valign="middle" align="center" width="400" rowspan="2"><select name="test">';
while ($promo=mysql_fetch_array($result2)) {
echo '<option value='.$promo['id_kunde'].'>'.$promo['Fa1'].'';
}
echo '</select></TD>';
echo '<TD height="43" valign="bottom" align="center" width="70" rowspan="2"></TD>';
echo '<TD height="22" valign="middle" align="center" width="137">'.$counter->users().' User verbunden</TD>';
echo '</TR>';
echo '<TR BGCOLOR="#e0e0e0">';
echo '<TD height="21" valign="middle" align="center" width="137">'.$counter->visits().' Anfragen</TD>';
echo '</TR>';
echo '</TABLE>';
http://www.rok.formativ.net/menue2.php
Hier der Code:
// ausführen einer SQL Anfrage
$result = mysql_query("SELECT Fonds AS 'Fonds',Konto AS 'Konto',Kürzel AS 'Kürzel',Sachb AS 'Sachb.',Kuerzel AS 'Kuerzel',Name AS 'Kontakt',Telefon AS 'Telefon',Fax AS 'Fax',Email AS 'Email',Dok_Nr AS 'Vollm.' FROM dritt_fonds AS A LEFT OUTER JOIN dritt_kontakt AS B ON A.id_dritt_kontakt=B.id_kontakt LEFT OUTER JOIN unterschrift AS C ON A.id_unterschrift=C.id_unterschr LEFT OUTER JOIN mitarbeiter AS D ON A.id_sachb=D.id_mitarb ORDER BY $sort ASC");
$anzahl = mysql_num_rows($result);
$result2 = mysql_query("SELECT Fa1,id_kunde FROM kunde");
echo '<CENTER><FONT SIZE=5 FACE=ARIAL><B>Fondsdatenbank 1.2</B></FONT></CENTER>';
echo '<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=0 WIDTH=100%>';
echo '<TR BGCOLOR="#e0e0e0">';
echo '<TD height="43" valign="middle" align="left" width="93" rowspan="2"> <FONT SIZE=2 FACE=ARIAL COLOR="#FF0000">'.$anzahl.' Einträge</FONT></TD>';
echo '<TD height="43" valign="middle" align="center" width="280" rowspan="2"><a href="/union.php?sort=Fonds"><img border=0 src="/union.gif" align="absmiddle" width=128 height=25></a> <a href="/topten_dritt.php?sort=Performance&ud=DESC"><img border=0 src="/topten.gif" align="absmiddle" width=128 height=25></a></TD>';
echo '<TD height="43" valign="middle" align="center" width="400" rowspan="2"><select name="test">';
while ($promo=mysql_fetch_array($result2)) {
echo '<option value='.$promo['id_kunde'].'>'.$promo['Fa1'].'';
}
echo '</select></TD>';
echo '<TD height="43" valign="bottom" align="center" width="70" rowspan="2"></TD>';
echo '<TD height="22" valign="middle" align="center" width="137">'.$counter->users().' User verbunden</TD>';
echo '</TR>';
echo '<TR BGCOLOR="#e0e0e0">';
echo '<TD height="21" valign="middle" align="center" width="137">'.$counter->visits().' Anfragen</TD>';
echo '</TR>';
echo '</TABLE>';
Kommentar