WebWork Magazin - Webseiten erstellen lassen, Online Medien, html

Webhoster, Webhosting Provider und Domain registrieren

Home | Registrieren | Einloggen | Suchen | Aktuelles | GSL-Webservice | Suleitec Webhosting
Reparatur-Forum | Elektro forum | Ersatzteilshop Haushalt und Elektronik



Im Homepage und Webhosting-Forum --- Rangliste (Ohne Mysql) (Kompliziertes Ordner System)

Scripte und Programme für PHP, MYSQL. Diskussionen zur Programmierung im Web. Fragen zu CMS, Blogsoftware, Shops, Newsletter und vielen weiteren Scripten.

Forum » PHP & MySQL » Rangliste (Ohne Mysql) (Kompliziertes Ordner System) - 19 März 2024 Antworten
im Forum für Webhosting Homepage gefunden:
Rangliste (Ohne Mysql) (Kompliziertes Ordner System)
Tainor
Pixelschubser
Threadstarter




Beiträge: 1

Ich habe folgenden Script:

1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20:

".file_get_contents("data/users/$useremail/name.txt")."

"; echo "Gewonnen: ".file_get_contents("data/users/$useremail/stats/wins.txt")."
"; echo "Verloren: ".file_get_contents("data/users/$useremail/stats/loses.txt")."
"; echo "Unentschieden: ".file_get_contents("data/users/$useremail/stats/draws.txt")."
"; echo "Reaktorzerstörungen: ".file_get_contents("data/users/$useremail/stats/reactor.txt")."
"; echo "Helden getötet: ".file_get_contents("data/users/$useremail/stats/herokills.txt")."
"; echo "Glue Assists: ".file_get_contents("data/users/$useremail/stats/glues.txt")."
"; echo "W/V: "; $wins = file_get_contents("data/users/$useremail/stats/wins.txt"); $loses = file_get_contents("data/users/$useremail/stats/loses.txt"); if($wins == "0" and $loses == "0" or $wins == "1" and $loses == "0") { if($wins == "1" and $loses == "0") { echo "1"; } else { echo "0"; } } else { echo $wins / $loses; } echo ""; } }; ?>

Und nun will ich, dass die Ausgabe nach der W/V sortiert ist:
1: 
2:
echo "W/V: ";
$wins = file_get_contents("data/users/$useremail/stats/wins.txt"); $loses = file_get_contents("data/users/$useremail/stats/loses.txt"); if($wins == "0" and $loses == "0" or $wins == "1" and $loses == "0") { if($wins == "1" and $loses == "0") { echo "1"; } else { echo "0"; } } else { echo $wins / $loses; }


Ist das möglich, oder nicht?

  Profil   Editieren   Zitieren
Klaus1973
Fachidiot




Beiträge: 137

Das bringt doch nichts? Damit wird lediglich der JavaScript-Code per PHP (also bevor die Seite überhaupt geladen ist) erzeugt, aber er will ja, dass ein PHP-Script auf Knopfdruck ausgeführt wird.

  Profil   Editieren   Zitieren
Rogantinno
Pixelschubser




Beiträge: 3

Thank u for info

  Profil   E-Mail   Editieren   Zitieren
newtopblog
Pixelschubser




Beiträge: 1

I really like what Nigel said to Angelia in the film.
When your personal life is gone, remember to notify me, it means you are going to be promoted.
I very much agree with this sentence, life and work, we choose to work because of life, and work makes us neglect life.
When you want to get promoted, you have to sacrifice more of your private time to work.
Choice is a very interesting thing, and when you make a choice, it also means that you will lose something very pity.
how to get sponsored for running
A very interesting website

  Profil   E-Mail   Editieren   Zitieren
 

Antworten
Forum » PHP & MySQL » Rangliste (Ohne Mysql) (Kompliziertes Ordner System)

Aktuelle Beiträge zur Hilfe im Forum für Homepage - Rangliste (Ohne Mysql) (Kompliziertes Ordner System) im Forum Homepage Hosting AntwortenLetztes Posting
Best online slots
in "PHP & MySQL"
0 23.01.2023 22:40 von Sevetr
Rangliste (Ohne Mysql) (Kompliziertes Ordner System)
in "PHP & MySQL"
3 19.07.2021 06:00 von newtopblog
kleines problem mit phpadmin
in "PHP & MySQL"
5 11.04.2021 22:22 von Zavylon
Counter mit PHP
in "PHP & MySQL"
4 22.03.2021 16:29 von Robeni
Fehlermeldung beim Importieren der Datenbank in phpmyadmin
in "PHP & MySQL"
0 02.08.2019 22:14 von iFuchs
CMS für Online Shop
in "PHP & MySQL"
18 26.05.2019 13:29 von raiserle
Regestrierungproblem
in "PHP & MySQL"
3 28.11.2018 13:20 von norbertofahey
PHP Datum ausgeben?
in "PHP & MySQL"
1 19.10.2018 10:04 von Klaus1973
PHP befehl ausführen
in "PHP & MySQL"
11 16.08.2018 09:08 von Klaus1973
Visual Composer selber programmieren?
in "PHP & MySQL"
0 22.01.2017 23:45 von Redji
php preg_replace_callback für dynamischen Link
in "PHP & MySQL"
0 05.07.2016 11:02 von Rm21
PHP Code verschlüsseln
in "PHP & MySQL"
20 21.02.2016 21:25 von Kilian1
migrierter WP-Blog läuft nicht ...
in "PHP & MySQL"
0 04.02.2016 02:01 von Oxygon



Besucher : 7971396    Heute : 195     Gestern : 402     Online : 19     19.3.2024    9:22      0 Besucher in den letzten 60 Sekunden        
Nach oben