Jump to content

update the database query


abitshort

Recommended Posts

I try to get my database update but it doesn't seems to work, doesn't give any error messages either. After I submit the clues fields just got empty, and the live feild stays the same.

 

I think it have to do with the serialize array that I used. Sorry, I'm new to this stuff. Please help me fix this query

 

<? } 
   if ($_POST["submit"])
   {
  $word = $_POST["word"];
  $live = $_POST["live"];
  $id = $_POST["id"];
  $clues = $_POST[serialize(array($c1, $c2, $c3, $c4, $c5))];

  $result = mysql_query("UPDATE taboo SET word='$word', $c1='$clues', $c2='$clues' $c3='$clues' $c4='$clues' $c5='$clues' live='$live' WHERE id=$id")or die(mysql_error());

}
}
?>

Link to comment
https://forums.phpfreaks.com/topic/181619-update-the-database-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.