datum speichern

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • datum speichern

    hmm wie kann ich das aktuelle datum in der datenbank speichern wo z.b ein wort eingetragen wurde??

  • #2
    beschrieb mal genauer....in was und welches Feld willst du es in welcher Form schreiben...?
    tata
    moqui

    [COLOR=red]Ich will keine unaufgeforderten Mails über PHP Fragen. Es gibt ein Forum hier! Und ich bin nicht Scripter für jeden, der mir ne Mail schreibt![/COLOR]

    Comment


    • #3
      feld: datum
      form: h:y:h oder so

      Comment


      • #4
        also du hast ein Feld z. B. tinytext und da steht schon was drin....? und du willst ein Datum formatiert dazu hängen?
        tata
        moqui

        [COLOR=red]Ich will keine unaufgeforderten Mails über PHP Fragen. Es gibt ein Forum hier! Und ich bin nicht Scripter für jeden, der mir ne Mail schreibt![/COLOR]

        Comment


        • #5
          nein in den feld steht noch nix drin soll ja was reinkommen ^^

          Comment


          • #6
            meinst du so?

            PHP Code:
            $now time();

            $date date("d.m.y",$now);

            mysql_query("INSERT INTO table (date) VALUES ('$date')"); 
            cya CrazyPip

            Comment


            • #7
              PHP Code:

              $datum 
              date("d.m.Y");

              mysql_query("insert into tabelle set feld='$datum'"); 
              tata
              moqui

              [COLOR=red]Ich will keine unaufgeforderten Mails über PHP Fragen. Es gibt ein Forum hier! Und ich bin nicht Scripter für jeden, der mir ne Mail schreibt![/COLOR]

              Comment


              • #8
                thx für die hilfreichen antworten ^^

                Comment

                Working...
                X