[PHP] Datum stimmt nicht mehr ohne änderung?

Tamara_Basel

Well-known member
ID: 92557
L
26 Mai 2006
187
3
Hallo,

in meinem Auktions Script stimt das Datum nicht mehr,
wer hat da eine Idee warum das so kommen kann wenn ich am Script nix geändert habe ??

Ich habe auch schon mal das Backup aufgespielt und immer noch...



Mysql:
starts timestamp ON UPDATE CURRENT_TIMESTAMP Nein CURRENT_TIMESTAMP
Im Format : 0000-00-00 00:00:00


Und in PHP:

$year = substr($date,0,4);
$month = substr($date,4,2);
$day = substr($date,6,2);
$hours = substr($date,8,2);
$minutes = substr($date,10,2);
$seconds = substr($date,12,2);

Das sollte so ja stimmen ??


Ich weiss icht genau, aber ich vermute das der Server neu Aufgesetzt wurde vom Hoster.
Ist es möglich das dabei was anderst aufgespielt wurde ?
Zeitweise ging ein Script nicht und nun gehts wieder..
das hier:
https://www.ebcity.de/no-cgi/megatoplist/index.html
 
So aus dem Bauch heraus fallen mir da zwei Ansätze ein:

- die Serversystemzeit stimmt nicht mehr

- es wurde ein Update auf eine neue Mysql-Version durchgeführt. Wenn ich mich recht entsinne, speichern ältere Mysql-Versionen das Datum einfach so wie es vom Server kommt, neuere rechnen die Zeit zunächst (vor dem Speichern) auf UTC oder war es GMT um, und beim Ausliefern wieder zurück.

Schau doch mal in diese Richtungen - die Lösung würde mich auch interesssieren - also bitte hier posten.

Gruß aus Berlin

leller
 
Hallo,

hatte leider einigezeit etwas Stress wegen einem Umbau am Haus...


Also das Problem scheint am auslesen zu liegen, es wird richtig eingetragen ( zumindest ist es lesbar in der DB )
2007-01-05 19:45:38

Aber bei der Ausgabe zeigt er nur mist an:
1-. -0 2007, 05: 1 MEZ

Siehe Testartikel:
https://www.ebcity.de/item.php?id=30406
 
$year = substr($date,0,4);
$month = substr($date,4,2);
$day = substr($date,6,2);
$hours = substr($date,8,2);
$minutes = substr($date,10,2);
$seconds = substr($date,12,2);

Anscheinend hat sich das Format, wie das Datum in der Datenbank gespeichert wird, geändert. Pass mal die von mir rot gekennzeichneten Werte an. Ich bin jetzt zu faul, das alles nachzuzählen. Aber das kannst du leicht selber machen. Der zweite Parameter in substr() (also der rote) gibt den Startwert an, der dritte Parameter die Länge des zurückzugebenden Strings.

Aber aufpassen. Immer schön bei 0 anfangen mit dem zählen.


// edit:
Ich kann es mir einfach nicht verkneifen, zu fragen was das für eine bescheuerte Programmierung ist. Es gibt so viele schöne PHP- und MySQL-Funktionen für vernünftige Datumsverwaltung. Und dann macht einer so 'nen Dreck ...
 
Zuletzt bearbeitet:
[SIZE="1" schrieb:
// edit:
Ich kann es mir einfach nicht verkneifen, zu fragen was das für eine bescheuerte Programmierung ist. Es gibt so viele schöne PHP- und MySQL-Funktionen für vernünftige Datumsverwaltung. Und dann macht einer so 'nen Dreck ...[/SIZE]

PHP:
/*
   Copyright (c), 1999, 2000 - phpauction

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation (version 2 or later).

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

Soviel dazu wer sowas schreibt....

Und wenn ich das alles ändern muss sitze ich da ewig dran, das steht in sooo vielen dateien drin, die durch zu suchen dauert stunden.

Ich habe gerade mal in einem Backup nachgesehen, vorher war das Datum so da gespeichet --> 20041025190340 ohne irgendwelche zeichen dazwischen.

eine einfachere Variante kennst du nicht vieleicht ??
 
Leider weiss ich nicht wie das weitergenutzt wird was da so ausgelesen wird.

Es wird ja die rest dauer und so was berechnet.

PHP:
/* time left till the end of this subastas */
$difference = mktime($ends_h,$ends_min,$ends_sec,$ends_m,$ends_d,$ends_y)-time();
$days_difference = intval($difference / 86400);
$difference = $difference - ($days_difference * 86400);

$hours_difference = intval($difference / 3600);
if(strlen($hours_difference) == 1){
$hours_difference = "0".$hours_difference;
}

$difference = $difference - ($hours_difference * 3600);
$minutes_difference = intval($difference / 60);
if(strlen($minutes_difference) == 1){
$minutes_difference = "0".$minutes_difference;
}

$difference = $difference - ($minutes_difference * 60);
$seconds_difference = $difference;
if(strlen($seconds_difference) == 1){
$seconds_difference = "0".$seconds_difference;
}

Da ich das Script nicht geschrieben hab weiss ich auch nicht was genau wie zusammen hängt..
Hast du einen Tipp wie ich das am leichtesten umändere ?
 
Neija du könntest ja das Timestamp Format in der Datenbank festlegen, so wie deine Anwendung es erwartet

Das war auch mein erster gedanke, aber beim Speichern nimmt SQL das nicht an, auch wenn die Tabelle leer ist, ich hab das jetzt schon x Fach versucht, da das sicher der leichteste weg wäre...


Sorry passt nicht ganz aber warum dieses olle Script und dann noch die ältere Version??

Na weil ich das schon Jahre hab und nu gehts nimmer...

Wenn du mir zu einer neuen Version oder einem Besseren Script verhelfen kannst bin ich sicher nicht abgeneigt.. !

Ich hab mich an diesem Teil eh schon oft gewundert wie es geschrieben ist und anfangs hatte ich massig Probleme es zum laufen zu bringen...
 
So es stimmt also doch Google hilft immer...


Hab etwas gefunden Hier die Lösung !

PHP:
      $date = $row["starts"];
	  $y =        substr ($date, 0, 4);
	  $m =        substr ($date, 5, 2);
	  $d =        substr ($date, 8, 2);
	  $h =        substr ($date, 11, 2);
	  $min =        substr ($date, 14, 2);
	  $sec =        substr ($date, 17, 2);

	  $ends_date = strval($row["ends"]);
	  $ends_y =        substr ($ends_date, 0, 4);
	  $ends_m =        substr ($ends_date, 5, 2);
	  $ends_d =        substr ($ends_date, 8, 2);
	  $ends_h =        substr ($ends_date, 11, 2);
	  $ends_min =        substr ($ends_date, 14, 2);
	  $ends_sec =        substr ($ends_date, 17, 2);

Das war ja schon klar nur dachte ich es gäbe was einfacheres als alles durchzusuchen ( faulheit...)
 
Hab jetzt das Gesammte Script durchsucht, es gibt unzählige Stellen an denen man etwas ändern muss.
Wer das selbe Script hat und nicht alles Findet kann sich gerne melden.


Grüße Thomas
 
hiho, das problem scheinen hier ja nicht viele zu haben, ich hatte es (neue sql version) und hab nach google suche den kompletten timestamp geändert, blöderweise bekomme ich jetzt nen sql fehler in der bid.php

kann mit der meldung so ziemlich NIX anfangen:
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '15:35:23,ends=2007-09-28 15:35:23 WHERE id=90' at line 1

hat da jemand ne idee oder das problem vielleicht schonmal gefixt ?
 
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '15:35:23,ends=2007-09-28 15:35:23 WHERE id=90' at line 1

Es hilft normalerweise, den kompletten SQL-Befehl mit anzugeben. Hier würde ich drauf tippen, dass du das Datum in Hochkomma setzen mußt!
Also z.B.
Code:
... , ends='2007-09-28 15:35:23' ...
Das gilt natürlich auch für das Datum vor ends, über das er sich ja beschwert.
 
also das ganze nochmal mit ner geänderten id:
SQL Client Version 5.0.45, php 5

Fehlermeldung:
update auctions set current_bid=5,starts=2007-09-28 00:47:23,ends=2007-09-29 00:47:23 where id="90"
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '00:47:23,ends=2007-09-29 00:47:23 where id="90"' at line 1

Code:

PHP:
<?php
        include("./includes/config.inc.php");
        include("./includes/messages.inc.php");
        include("./includes/auction_types.inc.php");

        /* first check if valid auction ID passed */
        $result = mysql_query("SELECT * FROM auctions WHERE id='$id'");
                // SQL error
        if (!$result)
        {
                include("header.php");
        $TPL_errmsg = $flr_001;
                include("templates/template_bid_php.html");

                include("footer.php");
                exit;
        }
        $n = mysql_num_rows($result);

        // such auction does not exist
        if ($n==0)
        {
                include("header.php");
        $TPL_errmsg = $flr_606;
                include("templates/template_bid_php.html");

                include("footer.php");
                exit;
        }

      // extract info about this auction into an hash
      $Data = mysql_fetch_array($result);
      $auctiondate = $Data[starts];
      $auctionends = $Data[ends];
            $item_title = $Data["title"];

            $item_description = $Data["description"];

      // check if auction isn't closed
      $AuctionIsClosed = false;
      $closed = intval($Data["closed"]);
      $c = $Data["ends"];

      if ( mktime(
              substr($c, 11, 2),
              substr($c, 14, 2),
              substr($c, 17, 2),
              substr($c, 5, 2),
              substr($c, 8, 2),
              substr($c, 0, 4)
          )<=time() )
          $AuctionIsClosed = true;

      if ( ($closed==1) || ($AuctionIsClosed) )
      {
          include("header.php");
          $TPL_errmsg = $flr_614;
                  include("templates/template_bid_php.html");
          include("footer.php");
          exit;
      }

      // fetch info about seller
      $result = mysql_query("SELECT * FROM users WHERE id='".$Data["user"]."'");
      $n = 0;
      if ($result)
          $n = mysql_num_rows($result);
      if ($n>0)
          $Seller = mysql_fetch_array($result);
      else
          $Seller = array();


      $atype = intval($Data[auction_type]);

      // calculate: increment and mimimum bid value
      // determine max bid for this auction


      // höchstes momentanes Gebot für diese Auktion holen
      $result = mysql_query("SELECT MAX(bid) AS maxbid FROM bids WHERE auction='$id' GROUP BY auction");
      $high_bid = 0;
      if ($result)
          if (mysql_num_rows($result)>0)
              $high_bid = mysql_result($result,0,"maxbid");
      // Erhöhungsschritt aus der Datenbank holen
      $query = "SELECT increment FROM increments WHERE".
        "((low<=$high_bid AND high>=$high_bid) OR".
        "(low<$high_bid AND high<$high_bid)) ORDER BY increment DESC";
      $result_incr = mysql_query  ( $query );
      if(mysql_num_rows($result_incr) != 0)
      {
      $increment   = mysql_result ( $result_incr, 0, "increment" );
      }

      $minimum_bid = $Data["minimum_bid"];

      // wenn noch kein Gebot vorliegt, dann das erste Gebot setzen, ...
      if ($high_bid==0)
        $next_bid = $minimum_bid;
      // wenn doch, dann Gebot _PLUS_ Erhöhungsschritt
      else
        $next_bid = $high_bid + $increment;

        /*      else: such auction does exist.
                if called from item.php - then transfer passed data
                if called - check data/username/password and then execute autobid
        */

        unset($display_bid_form);
        if (empty($action) )
        {
                // no "action" specified
                $display_bid_form = true;
        }
        else
        {
    // an action specified: check for data and perform corresponding actions

    unset($flr);

      /*
        BM 31.10.2001
        1. In $high_bid steht jetzt der höchste Wert aus dem Feld "bid" der Tabelle "bids"
        2. In $minimum_bid steht jetzt der Wert des Feldes "minimum_bid" der Tabelle "auctions" (Startpreis)
        3. In $next_bid steht jetzt der Betrag des aktuellen Mindesgebotes
      */


    // Kommas gegen Punkt austauschen
    $newbid = $bid;
    $bid = str_replace(",",".",$newbid);


    if ($bid<$next_bid)
    {
      $flr = "607";
    }

    // check if number of items is OK
    if ( ($atype==2) && (!isset($flr)) )
    {
      if ( (intval($qty)==0) || (intval($qty)>intval($Data["quantity"])) )
      {
        $flr = "608";
      }
    }

    // check if nickname and password entered
    if ( !isset($flr) )
    {
      if ( strlen($nick)==0 || strlen($password)==0 )
          $flr = "610";
    }

    // Schwarze Liste des Verkäufers prüfen
    if ( !isset($flr) )
    {
      $query = "SELECT * FROM blacklist WHERE user='".$Seller["id"]."' AND dis_user='".$nick."'";
      $result = mysql_query($query);
      if ($result)
      {
        $n = mysql_num_rows($result);
        if ($n > 0)
          $flr = "621";
      }
      else
        $flr = "001";
    }

    // check if nick is valid
    if ( !isset($flr) )
    {
      $query = "SELECT * FROM users WHERE nick='".addslashes($nick)."'";

      $result = mysql_query($query);

      $n = 0;
      if ($result)
          $n = mysql_num_rows($result);
      else
          $flr = "001";

      if ( !isset($flr) )
      {
          if ($n==0)
              $flr = "609";
      }
      if($n > 0)
        $bidder_id = mysql_result($result,0,"id");
    }

    // check if password is correct
    if ( !isset($flr) )
    {
        $pwd = mysql_result($result,0,"password");
        if ($pwd != md5($MD5_PREFIX.$password))
        {
            $flr = "611";
        }
        else
        {
          if(mysql_result($result,0,"suspended") > 0)
          {
            $flr = "618";
          }
        }
    }

    // Check if Auction is suspended
    if ( !isset($flr) )
    {
      $query2 = "SELECT suspended FROM auctions WHERE id='$id'";
      $result2 = mysql_query($query2);

      if (mysql_result($result2, 0, "suspended") > 0)
      {
        $flr = "619";
      }
    }

    // check if bidder is not the seller
    if ( !isset($flr) )
    {
        $bidderID = mysql_result($result,0,"id");
        if ( $bidderID == $Seller["id"] )
            $flr = "612";
    }

    // check if this user isn't winning now
    if ( !isset($flr) )
    {
      $result = mysql_query("SELECT * FROM bids WHERE auction='$id' ORDER BY bid DESC");
      $auctionBIDS = $result;
      $n = 0;
      if ($result)
      {
        $n = mysql_num_rows($result);
        if ($n>0)
        {
          $bidder = mysql_result($result,0,"bidder");
          $moment_bid = mysql_result($result,0,"bid");
          if (($bidder == $bidderID) AND ($next_bid <= $moment_bid))
              $flr = "613";
        }
      }
      else
        $flr = "001";
    }

    // perform final actions
    if ( isset($flr) )
    {
        $display_bid_form = true;
        $TPL_errmsg = ${"ERR_".$flr};
    }
    else
    {
    unset($flr);

    $send_email = 0;

    // Send e-mail to the old winner if necessary

    // Check if there's a previous winner and get his/her data

    $query = "select bidder,bid,maxbid from bids where auction=\"$id\" order by maxbid desc";
    $result = mysql_query($query);
    if(!$query)
    {
      print $flr_001."<BR>$query<BR>".mysql_error();
      exit;
    }

    if(mysql_num_rows($result) > 0)
    {
      $send_email = 1;

      $OldWinner_id = mysql_result($result,0,"bidder");
      $OldWinner_bid = mysql_result($result,0,"bid");
      // BEG BM 31.10.2001
      $OldWinner_maxbid = mysql_result($result,0,"maxbid");
      // END BM 31.10.2001

      $query = "select * from users where id=\"$OldWinner_id\"";
      $result_old_winner = mysql_query($query);
      if(!$result_old_winner){
        print $flr_001."<BR>$query<BR>".mysql_error();
        exit;
      }

      $OldWinner_nick = mysql_result($result_old_winner,0,"nick");
      $OldWinner_name = mysql_result($result_old_winner,0,"name");
      $OldWinner_email = mysql_result($result_old_winner,0,"email");
    }

      // schauen, ob ein Agentgebot höher ist als das eigene Gebot...
      if ($bid <= $OldWinner_maxbid)
      {
        include "header.php";
        $send_email = 0;
        print "<Div align=\"Center\">";
        print "<br><br><span class=\"text_title\">Sie wurden von einem anderem Bieter gerade überboten.</span><br>";
        print "<span class=\"info_text\"";
        print "<a href=\"item.php?id=$id\">Zurück zur Auktion</a>";
        print "</span>";
        print "</Div><BR>";



        // Tabellen updaten...

        if ($bid < $OldWinner_maxbid)
        {
          // Das eigene Gebot
          $bid = doubleval($bid);
          $maxbid = $bid;

          $query = "update auctions set current_bid=$bid,starts=$auctiondate,ends=$auctionends where id=\"$id\"";
          if(!mysql_query($query)){
            print $flr_001."<BR>$query<BR>".mysql_error();
            exit;
          }

          $query = "insert into bids values(\"$id\",\"$bidder_id\",$bid,$maxbid,NULL,".intval($qty).")";
          if(!mysql_query($query)){
            print $flr_001."<BR>$query<BR>".mysql_error();
            exit;
          }
        }


        // Das des Bietagenten des OldWinners
        if (($bid + $increment) <= $OldWinner_maxbid)
        {
          $newbid = doubleval($bid + $increment); // einen Erhöhungsschritt weiter
        }
        else
        {
          $newbid = doubleval($OldWinner_maxbid);
        }
        $maxbid = $OldWinner_maxbid;
        $query = "update auctions set current_bid=$newbid,starts=$auctiondate,ends=$auctionends where id=\"$id\"";
        if(!mysql_query($query)){
          print $flr_001."<BR>$query<BR>".mysql_error();
          exit;
        }

        $query = "insert into bids values(\"$id\",\"$OldWinner_id\",$newbid,$maxbid,NULL,".intval($qty).")";
        if(!mysql_query($query)){
          print $flr_001."<BR>$query<BR>".mysql_error();
          exit;
        }

         //Print "OldWinner: ".$OldWinner_maxbid."<br>";
         //Print "Bid: ".$bid;

        if ($bid >= $OldWinner_maxbid)
        {
          $send_email = 1;

          // Das eigene Gebot
          if ($bid > $OldWinner_maxbid && ($OldWinner_maxbid + $increment) <= $bid)
            $bid = $OldWinner_maxbid + $increment;

          //$bid = doubleval($bid);
          $maxbid = $bid;

          $query = "update auctions set current_bid=$bid,starts=$auctiondate,ends=$auctionends where id=\"$id\"";
          if(!mysql_query($query)){
            print $flr_001."<BR>$query<BR>".mysql_error();
            exit;
          }
          $query = "insert into bids values(\"$id\",\"$bidder_id\",$bid,$maxbid,NULL,".intval($qty).")";
          if(!mysql_query($query)){
            print $flr_001."<BR>$query<BR>".mysql_error();
            exit;
          }
        }


        include "footer.php";
        exit;
      }
      else
      {

        $maxbid = $bid;

        // BM 9.3.2002 - Bug beim autom. Überbieten behoben
        if ($next_bid < $OldWinner_maxbid)
          $bid = $OldWinner_maxbid + $increment;
        else
          $bid = $next_bid;

      }
      // END BM 31.10.2001


    // Update auctions table with the new bid

    $bid = doubleval($bid);
    $query = "update auctions set current_bid=$bid,starts=$auctiondate,ends=$auctionends where id=\"$id\"";
    //$query = "update auctions set current_bid=$bid where id=\"$id\"";
    if(!mysql_query($query)){
      print $flr_001."<BR>$query<BR>".mysql_error();
      exit;
    }

    // Update bids table with the new bid
    $query = "insert into bids values(\"$id\",\"$bidder_id\",$bid,$maxbid,NULL,".intval($qty).")";
    if(!mysql_query($query)){
      print $flr_001."<BR>$query<BR>".mysql_error();
      exit;
    }


    if($send_email){
          //Print "Email wird gesendet an: ".$OldWinner_email;
          $year    = substr($auctionends, 0, 4);
          $month   = substr($auctionends, 5, 2);
          $day     = substr($auctionends, 8, 2);
          $hours   = substr($auctionends, 11, 2);
          $minutes = substr($auctionends, 14, 2);
          $ends_string   = $day . "." . $month . "." . $year . "  " . $hours . ":" . $minutes;
      $new_bid = print_money($bid);
          //-- Send e-mail message
             include('./includes/no_longer_winner.inc.php');
    }

    // 3) perform output
        if ( isset($flr) )
        {
          $flr = ${"ERR_".$flr};
          include "header.php";
          print "<CENTER><span class=\"text_normal\"> $flr </span></CENTER>";
          print mysql_error();
          include "footer.php";
          exit;
      }
        else
        {
          $TPL_id = $id;
          include "header.php";
          include "templates/template_bid_result_php.html";
          include "footer.php";
          exit;
        }
      }
        }

        if($display_bid_form)
        {
                // prepare some data for displaying in the form
                $nickH = htmlspecialchars($nick);
                $bidH = htmlspecialchars($bid);
                $qtyH = htmlspecialchars($qty);
                $TPL_title = htmlspecialchars($Data[title]);
                $TPL_next_bid = print_money($next_bid);

           $TPL_proposed_bid = print_money($bid);
             $TPL_cancel_bid_link = '<A HREF="item.php?SESSION_ID='
              . $sessionIDU . '">' . $text_332 . '</A>';


                // output the form
                include("header.php");

                // Kommas gegen Punkt austauschen
                $newbid = $bidH;
                $bidH = str_replace(",",".",$newbid);

                include("templates/template_bid_php.html");
                include("footer.php");
                exit;
        }

so meine erste vermutung war:

PHP:
// check if auction isn't closed
      $AuctionIsClosed = false;
      $closed = intval($Data["closed"]);
      $c = $Data["ends"];

      if ( mktime(
              substr($c, 11, 2),
              substr($c, 14, 2),
              substr($c, 17, 2),
              substr($c, 5, 2),
              substr($c, 8, 2),
              substr($c, 0, 4)
          )<=time() )
          $AuctionIsClosed = true;

      if ( ($closed==1) || ($AuctionIsClosed) )
mktime ist ja der unix timestamp wenn ich das richtig verstanden habe deswegen fängt die anzeige mit stelle 11 an das müssten nach dem sql timestamp ja die stunden sein - habe es auch schon mit anderen funktionen statt mktime probiert, da funzt dann garnix mehr ;)

so 2. anlaufstelle:
PHP:
        // Tabellen updaten...

        if ($bid < $OldWinner_maxbid)
        {
          // Das eigene Gebot
          $bid = doubleval($bid);
          $maxbid = $bid;

          $query = "update auctions set current_bid=$bid,starts=$auctiondate,ends=$auctionends where id=\"$id\"";
          if(!mysql_query($query)){
            print $flr_001."<BR>$query<BR>".mysql_error();
            exit;
          }
if ($bid < $OldWinner_maxbid) fällt raus weils ja das erstgebot ist
hochkommas sind also garnich drin zu beachten ist halt dass das ganze auf der basis unter sql 4.XX gebaut wurde deswegen sind an mehreren stellen im skript änderungen nötig, nur wo ? *g*

das einfachste wäre natürlich einfach eine alte sql version zu installieren, was auf meinem homeserver kein problem wäre aber bei meinem neuen hoster läuft leider auch eine version neuer als 4.XX bin für jeden gedanken und hinweis dankbar :)
 
die Seite wenn manim ersten Thread auf den "Auktions Script " Link klickt...

da kamm ne Browsermeldung....Skrtipt stoppen oder Fortsetzen...den genauen Inhalt weiss ich jetzt nicht mehr..
 
achso ich hab mich erst ab beitrag 13 eingeklinkt der thread ist n bischen älter

ursprünglich ist das problem gewesen dass der timestamp in der phpauction version nicht mehr dem von neueren sql datenbanken entspricht, was sich leicht ändern lässt, diese änderung führt aber zu einem weiteren problem was ich jetzt versuche zu beheben :-/

btw bei mir geht die seite mitm ie7 aber vollkommen inaktiv... keine einzige laufende auktion

worauf basiert denn das skript in deiner sig ?
 
Also zu deiner Fehlermeldung und dem SQL-Befehl:
update auctions set current_bid=5,starts=2007-09-28 00:47:23,ends=2007-09-29 00:47:23 where id="90"

Das ganze müßte folgendermaßen lauten:
Code:
update auctions set current_bid=5,starts='2007-09-28 00:47:23', ends='2007-09-29 00:47:23' where id=90
Wenn das ID-Feld ein INT-Feld ist, dann da keine Hochkommas. Aber um die Datenwerte müssen Hochkommas rum!

Dabei sollte es egal sein, ob die Tabellenspalte ein DATETIME oder ein TIMESTAMP ist. MySQL sollte das automatisch umwandeln (hoffentlich). Wenn du einen Timestamp brauchst, dann kannst du den unter PHP mit strtotime oder mktime erstellen.