Zum Inhalt springen

PHP-Coder

Mitglieder
  • Gesamte Inhalte

    5
  • Benutzer seit

  • Letzter Besuch

  1. hmm .. achso .. hmm .. dachte das könnt gehn ... hmm....
  2. ach sorry, hab das falsch formuliert! Ich will mittels PHP eine exe starten! Also ich klick auf nen Button und dann startet er mir notepad oder word oda so .... geht das? THX
  3. Hi ihr! Ist es möglich eine exe mit PHP auszuführen? Nehmen wir an meine exe file liegt auf -> C:/Programme/file.exe Kann ich das mit exec(); oder system(); bewerkstelligen? Oder gibts da andere Befehle dafür? Danke!
  4. ich hab ein poll system, also wenn man auf "vote" klickt, dann wird folgendes script ausgeführt: <? include("mysql.php"); if(!isset($poll_vote)){ header("location: main.php?link=error&error=poll"); } else { $result = mysql_query("SELECT * FROM polls_answers WHERE ID = '$poll_vote' AND ID_poll ='$poll_id'"); $row = mysql_fetch_array($result); $votes = $row['votes']; $max = $votes + 1; "UPDATE polls_answers SET votes = '$max' WHERE ID_poll = '$poll_id' AND ID = '$poll_vote'"; header("location: main.php?link=home"); } ?>[/PHP] Es stimmen alle variablen, hab ich vorher mit echo geprüft! ABER es wird "votes" NICHT up gedated! wieso nicht? Das feld votes ist INT! Und meine variablen ($poll_id, $poll_vote) bestehen! Also sind zb bei poll_ID 3 und bei vote_id 9! Und es passt auch alles bis aud das, dass er mir dann statt "0" in der zelle der tabelle nicht auf "1" erhöht, sondern es bleibt "0"! hmmm kann mir da wer helfen? Danke!
  5. <? function cookie_check(){ //-------------------------------------------------- if(!session_is_registered("u_password_md5")){ if(isset($u_name) && isset($u_password)){ $result=mysql_query("SELECT * FROM members WHERE name ='$u_name' AND password ='$u_password'"); if(mysql_num_rows($result)==1){ $row = mysql_fetch_array ($result); $u_rights = $row['rights']; $u_password_md5 = $u_password; session_register("u_name", "u_password_md5", "u_rights"); } } else { $u_name = "unknown"; $u_rights = "unknown"; session_register("u_name", "u_rights"); } } } //------------------------------------------------------------------------------- ?> [/PHP] So, aber wenn KEIN cookie gesetzt ist (ALSO $u_name UND $u_password NICHT gesetzt sind) dann regestriert er mir die variable $u_name = "unknown" UND $u_rights = "unknown" NICHT! Warum NICHT? ??? PS: $u_name und $u_password sind cookies! DANKE

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...