| | | | |
| | |
| Neuer Benutzer Registriert seit: 02.12.2004
Beiträge: 4
![]() | Hallo ich habe da ein script das wirft keine komma zahlen aus ich trage zwar komma zahlen rein aber wie kann ich das machen das der 19.99 anzeigt ? Hatte zwra schon mal Versucht da hatte er parse error gesagt dan habe ich bei der Original $einnahmen =0; $ausgaben =0; So hatte ich es geändert $einnahmen =0,00; $ausgaben =0,00; einfach . stadt , gemacht aber er zeig immer noch nur 19 an anstant 19.99 ? <? session_start(); if(!$log1) { header("Location: index.php"); } include("header.php"); include("configs.php"); ?><p align="center"><font size="2" face="Verdana">Übersicht </font></p> <table width="100%" > <tr> <td width="22%" style="border: 1px solid #000000" bgcolor="#003399"> <font face="Verdana" style="font-size: 8pt; font-weight: 700" color="#FFFFFF">Titel:</font></td> <td width="17%" style="border: 1px solid #000000" bgcolor="#003399"> <font face="Verdana" style="font-size: 8pt; font-weight: 700" color="#FFFFFF">Anzahl:</font></td> <td width="20%" style="border: 1px solid #000000" bgcolor="#003399"> <font face="Verdana" style="font-size: 8pt; font-weight: 700" color="#FFFFFF">Gruppe:</font></td> <td width="20%" style="border: 1px solid #000000" bgcolor="#003399"> <font face="Verdana" style="font-size: 8pt; font-weight: 700" color="#FFFFFF">Datum:</font></td> <td width="20%" style="border: 1px solid #000000" bgcolor="#003399"> <font face="Verdana" style="font-size: 8pt; font-weight: 700" color="#FFFFFF">Von:</font></td> </tr> <? $einnahmen =0; $ausgaben =0; $abfrage = "SELECT * FROM `ekvs_transfers` WHERE active LIKE '1' ORDER BY id DESC"; $ergebnis = mysql_query($abfrage); while($row = mysql_fetch_object($ergebnis)) { if($row->art=="out") { $ausgaben=$ausgaben+$row->anzahl;$sz="-"; $sc="red"; } if($row->art=="in") { $einnahmen=$einnahmen+$row->anzahl; $sz="+"; $sc="green"; } echo " <tr> <td width=20%> <font face=Verdana style='font-size: 8pt' color=$sc>$row->titel</font></td> <td width=20%> <font face=Verdana style='font-size: 8pt' color=$sc> $sz$row->anzahl</font></td> <td width=20%> <font face=Verdana style='font-size: 8pt' color=#000000>$row->gruppe</font></td> <td width=20%> <font face=Verdana style='font-size: 8pt' color=#000000>$row->date </font></td> <td width=20%> <font face=Verdana style='font-size: 8pt' color=#000000>$row->von</font></td> </tr>"; } ?> </table> <font size=2 color=steelblue face=verdana> Umsatz: <? $ums=$einnahmen+$ausgaben; echo $ums; ?> Euro <font color=green>Einnahmen: <? echo $einnahmen; ?> Euro</FONT> <font color=red>Ausgaben: <? echo $ausgaben; ?> Euro Gewinn/Verlust: <? $gewver=$einnahmen-$ausgaben; echo $gewver; ?> Euro Nicht Aktivierte Transfers: <table width="100%" > <tr> <td width="22%" style="border: 1px solid #000000" bgcolor="#003399"> <font face="Verdana" style="font-size: 8pt; font-weight: 700" color="#FFFFFF">Titel:</font></td> <td width="17%" style="border: 1px solid #000000" bgcolor="#003399"> <font face="Verdana" style="font-size: 8pt; font-weight: 700" color="#FFFFFF">Anzahl:</font></td> <td width="20%" style="border: 1px solid #000000" bgcolor="#003399"> <font face="Verdana" style="font-size: 8pt; font-weight: 700" color="#FFFFFF">Gruppe:</font></td> <td width="20%" style="border: 1px solid #000000" bgcolor="#003399"> <font face="Verdana" style="font-size: 8pt; font-weight: 700" color="#FFFFFF">Datum:</font></td> <td width="20%" style="border: 1px solid #000000" bgcolor="#003399"> <font face="Verdana" style="font-size: 8pt; font-weight: 700" color="#FFFFFF">Von:</font></td> </tr> <? $abfrage = "SELECT * FROM `ekvs_transfers` WHERE active LIKE '0' ORDER BY id DESC"; $ergebnis = mysql_query($abfrage); while($row = mysql_fetch_object($ergebnis)) { if($row->art=="out") { $sz="-"; $sc="red"; } if($row->art=="in") { $sz="+"; $sc="green"; } echo " <tr> <td width=20%> <font face=Verdana style='font-size: 8pt' color=$sc>$row->titel</font></td> <td width=20%> <font face=Verdana style='font-size: 8pt' color=$sc> $sz$row->anzahl</font></td> <td width=20%> <font face=Verdana style='font-size: 8pt' color=#000000>$row->gruppe</font></td> <td width=20%> <font face=Verdana style='font-size: 8pt' color=#000000>$row->date </font></td> <td width=20%> <font face=Verdana style='font-size: 8pt' color=#000000>$row->von | <A href=activate_trans.php?id=$row->id>Aktivieren</A></font></td> </tr>"; } ?> </table> <blockquote> <font face="Verdana" style="font-size: 8pt"> [img]overvi1.GIF[/img] Gruppen [img]overvi1.GIF[/img] <a href=add_transfer.php>Einfügen</a> [img]overvi1.GIF[/img] Löschen</font></p> </p> </blockquote> <form method="POST" action="resett.php"> <font face="Verdana"><span style="font-size: 8pt"> <input type="submit" value="Reset " name=" " style="color: #FFFFFF; font-family: Verdana; font-size: 8pt; border: 1px solid #000000; background-color: #800000"><font color="#FF0000"> Achtung: Alle Transfers werden unwiderruflich gelöscht.</font></span></font></p> </form> am ich will es selber machen aber ich habe hier schon geschaut ob ich was über komma zahlen finde aber nix wäre nett wen ihr mir helfen konntet |
| |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [gelöst] Zahlen sortieren mit Varchar | moose | Datenbanken | 8 | 21.07.2008 13:53 |
| Zahlen (Double) formatiert darstellen | Marie | PHP Tipps 2007 | 2 | 24.01.2007 22:32 |
| Zahlen effektiv verschlüsseln | Jacks Rache | PHP Tipps 2006 | 20 | 10.07.2006 01:44 |
| Zahlen zusammenzählen | Sonja | PHP Tipps 2006 | 11 | 28.03.2006 11:07 |
| [Erledigt] Gültigkeitsdauer eines Cookies lässt sich nicht setzen | PHP Tipps 2005-2 | 8 | 21.10.2005 13:25 | |
| Str_Replace mit Komma | phpbeginner | PHP Tipps 2005-2 | 3 | 23.08.2005 15:28 |
| Zahlen darstellen --> ###.###,## | PHP Tipps 2005-2 | 2 | 03.08.2005 16:48 | |
| Bei auslesen von Datenbank automatisch komma setzen | PHP Tipps 2005-2 | 5 | 14.06.2005 09:41 | |
| Problem Checkboxen - string mit Zahlen die gecheckten setzen | Cyberbob_at_tot | PHP Tipps 2005-2 | 5 | 11.06.2005 11:36 |
| Dateien erstellen und chmod setzen auch wenns nicht geht ^^ | PHP Tipps 2005 | 8 | 22.05.2005 02:53 | |
| runden 2 stellen hinterm komma | janni | PHP Tipps 2005 | 3 | 12.04.2005 21:09 |
| [Erledigt] Komma Zahlen in der Tabelle? | Datenbanken | 2 | 27.03.2005 22:37 | |
| komma getrennte werte sortieren und zählen | Schiedsrichter | PHP Tipps 2005 | 10 | 09.03.2005 15:56 |
| Shit Komma Soll Weg :D | Skazi | PHP Tipps 2004 | 11 | 04.11.2004 08:48 |
| Aufrunden vor dem Komma | Ohrwurm83 | PHP Tipps 2004 | 4 | 19.06.2004 20:21 |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| php komma, php komma setzten, php komma setzen, php kommazahlen, komma php, komma in php, php zahlen komma, http://www.php.de/php-tipps-2004-2/13388-bei-php-komma-zahlen-setzen.html, php zahlen mit komma, php 2 kommastellen, komma setzen php, php kommastellen, php komma einfügen, php komma hinzufügen, order by komma, php number_format euro, php ergebnis mit kommastellen, php ausgabe kommastellen, php komma schreiben, php komma einsetzen |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.