Results 1 to 3 of 3

Thread: Whats wrong :S?

  1. #1
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default Whats wrong :S?

    Ok, ive made this thing, but the update script doesnt seem to work.. it says its updated, but it hasnt..

    PHP Code:
    $habbo htmlspecialchars($_POST[habbo]);
    $furni htmlspecialchars($_POST[furni]);
    $amount htmlspecialchars($_POST[amount]);
    $comment htmlspecialchars($_POST[comment]);
    $password htmlspecialchars($_POST[password]);
    $edit mysql_query("UPDATE trade SET habbo='$habbo', furni='$furni', amount='$amount', comment='$comment', password='$password' WHERE id = '$id'");
    echo(
    "Item Updated!"); 
    Please post any suggestions
    Coming and going...
    Highers are getting the better of me

  2. #2
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Theres no $id

  3. #3
    Join Date
    Feb 2005
    Location
    Leicestershire / Sheffield
    Posts
    685
    Tokens
    0

    Default

    change

    Code:
    $edit = mysql_query("UPDATE trade SET habbo='$habbo', furni='$furni', amount='$amount', comment='$comment', password='$password' WHERE id = '$id'");
    too

    Code:
    $edit = mysql_query("UPDATE trade SET habbo='$habbo', furni='$furni', amount='$amount', comment='$comment', password='$password' WHERE id = '$id'")or die("MySQL Error: <br>".mysql_error());
    and post the error message

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •