PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Durchschnitt Paidmails bestätigt



MasterG
27.04.2007, 19:37
Hallo,

zur Zeit ist bei mir in den Mediadaten unter Paidmail Statistik folgender Code:

<td width="50%">Ø Bestätigt </td>
<td width="50%"><?=@number_format(100*$mail['mails']/$mailb['mail'],0,",",".");?> </td>
</tr>
So, wie es ist, stimmt es aber nicht. Der soll die gesendeten Mails *100 nehmen und das Ergebnis durch die bestätigten Mails teilen. Dass z.B. so ein Ergebnis rauskommt:
70,45%

EarlofMidnight
27.04.2007, 23:25
Probiers mal mit:

[CODE]
<td width="50%">Ø Bestätigt </td>
<td width="50%"><?=@number_format($mail['mails']/$mailb['mail'],0,",",".");?> </td>
[CODE]

Gruß

EarlofMidnight

MasterG
28.04.2007, 00:09
Das ist dann so, wie es zu Beginn war. Aber ich will es in Prozent. Jetzt kommen irgendwelche Zahlen raus wie 1 oder 4 usw.

Ich wollte, dass dort z.B. steht 70,57%