php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2006

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 09.04.2006, 10:14  
Neuer Benutzer
 
Registriert seit: 09.04.2006
Beiträge: 2
bavaria-records
Standard brauche hilfe bei preis formatierung vom xtc shop

hallo
ich habe ein problem mit der formatierung eines preises beim export
der wird immer mit zb. 7.99 ausgegeben
wie kann man es anstellen das er statt 7.99 einfach 7,99 draus macht
poste hier mal mein php code

//create content
$schema .=
$products['products_name'] ."y\t".
$products['products_ean'] ."\t".
$products['products_name'] ."4\t".
$products['products_name'] ."11\t".
$products['products_name'] ."\t".
number_format($products_price,2,'.',''). "\t" .
$products['products_ean'] ."\t".
$products['products_name'] ."\t".
$products_description ."\t".
$products['products_name'] ."281318\t".
$image ."\t" .
// substr($cat,0,strlen($cat)-2). "\t" .
$products['m1anufacturers_name'] ."100\n";



für eure hilfe wäre ich sehr dankbar

gruss
martin
bavaria-records ist offline  
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 09.04.2006, 10:30  
Moderator
 
Benutzerbild von agrajag
 
Registriert seit: 02.10.2006
Beiträge: 3.820
PHP-Kenntnisse:
Fortgeschritten
agrajag wird schon bald berühmt werdenagrajag wird schon bald berühmt werden
Standard

Ich nehme mal an die $products_price steht der Preis. Dann wäre diese Zeile dafür zuständig:
number_format($products_price,2,'.',''). "\t"

Wie numer_format funktioniert kannst du hier nachlesen:
http://de.php.net/number_format

Zitat:
string number_format ( float number [, int decimals [, string dec_point, string thousands_sep]] )
__________________
Today you...Tomorrow me.
agrajag ist offline  
Alt 09.04.2006, 10:47  
Neuer Benutzer
 
Registriert seit: 09.04.2006
Beiträge: 2
bavaria-records
Standard

HALLO
DANKE FÜR DIE INFO
leider ist mein english nicht so gut

bitte helfe mir auf sie sprünge

gruss
bavaria-records ist offline  
Alt 09.04.2006, 11:09  
Gast
 
Beiträge: n/a
Standard

Zitat:
Zitat von bavaria-records
leider ist mein english nicht so gut
Dazu kurz 5 Begriffe im Wörterbuch nachzuschlagen, solltest Du hoffentlich in der Lage sein...

Aber bitte:
http://selfphpfriend.de/funktionsref...ber_format.php
 
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Brauche hilfe mik08 PHP Tipps 2008 10 27.07.2008 16:17
Datenbanktabelle erstellen - brauche Hilfe Raccoon PHP Tipps 2008 1 14.06.2008 11:03
Ich brauche eure Hilfe beim rechnen... GELight PHP Tipps 2006 6 07.04.2006 14:20
Ich brauche eure Hilfe PHP Tipps 2006 22 19.02.2006 19:57
PHP <--> MySQL | Brauche Hilfe ahnungsloser Datenbanken 18 16.02.2006 21:49
brauche eben hilfe PHP Tipps 2007 2 26.11.2005 08:36
brauche sehr schnell und dringend hilfe Beitragsarchiv 13 24.10.2005 13:11
HILFE ! Brauche ganz dringend hilfe! PHP Tipps 2005-2 2 10.10.2005 23:08
Hilfe, Ich brauche hilfe! Kevin PHP Tipps 2005-2 2 27.09.2005 19:31
Brauche Hilfe bei preg_match() PHP Tipps 2005-2 2 23.07.2005 22:44
Brauche dringend Hilfe, Aufgabe fürs Studium (Upload-Script trivial Beitragsarchiv 23 23.06.2005 16:25
Problem mit osCommerce brauche dringend Hilfe... PHP Tipps 2005 12 13.05.2005 08:40
[Erledigt] Brauche dringend Hilfe PHP Tipps 2005 19 01.02.2005 20:21
Brauche Hilfe PHP Tipps 2005 5 11.01.2005 15:30
Preis in einem Shop (Computer-Konfigurator) aktualisieren PHP Tipps 2004 10 27.09.2004 14:33

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
php preis formatieren, php preisformatierung, gambio $products_ean, xtc products price formatieren, skript zur preisformatierung, formatiert products_price =>, xt commerce preis formatieren, xt commerce sonderpreis formatieren, sonderpreis formatieren gambio, preisformatierung php englisch, oscommerce \prod.products_ean\, $products[\'products_name\'], preis formatierung, xtcpreise , xtc zusätzliche preisfelder, xtc preiseingabe, preis formatieren xtc, preis formatieren, xt:c preisformatierung, xtc preis formatieren

Alle Zeitangaben in WEZ +2. Es ist jetzt 11:33 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.