sear: problem mit UPDATE

hallo zusammen

ich habe bereits etwas in diese tabelle (zellen) geschrieben und möchte es updaten. Dazu nutze ich die update funktion:

--- code ----------------------------------------------------

$add="UPDATE blog SET title = '$title' WHERE id = $id";

mysql_query($add);

-------------------------------------------------------------

leider passiert aber nix. $id lese ich weiter oben aus einem Formular aus, das funktioniert.

kann mir da jemand helfen?

Danke
Sear

  1. hi,

    $add="UPDATE blog SET title = '$title' WHERE id = $id";

    echo $add; ergibt?

    mysql_query($add);

    ersetze durch: mysql_query($add) or die(mysql_error());

    gruß,
    wahsaga

    --
    "Look, that's why there's rules, understand? So that you _think_ before you break 'em."