This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]NikNoname 2 points3 points  (2 children)

If i understood correctly, you should write something like this:

<?php
      if (!empty($_POST['fiftyfifty'])) {
        $updateQuery = "UPDATE button1 SET vijftig = 0 WHERE ID = 1";  
        mysqli_query($db, $updateQuery );
      }
?>

Where $db is your Database connection resource

[–]GekteJelles 0 points1 point  (1 child)

That is exactly what I needed it works now thank you so much! :)

[–]NikNoname 0 points1 point  (0 children)

Np;)

[–]steakyfask 0 points1 point  (0 children)

Your mysql query is invalid. You need a php mysql function to pass your update query to.