title: PHP/SQL Simple click counter button
body: <p>Tried to make a simple click counter, doesnt work. Whats wrong with my trash code?</p>
  
  <p>addLike.php</p>
  
  <pre><code> &lt;?php
  
  $requestLikes = "SELECT Likes FROM test1";
  $Likes = mysql_query($requestLikes);
  
  $insertToLikes = "INSERT INTO test1 (Likes) VALUES (" . $Likes + 1 . ")";
  mysql_query($insertToLikes);
  $Likes = mysql_query($requestLikes);
  
  ?&gt;
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>    &lt;button action="/DEMO/PHP/addLike.php" method="post"&gt;Yeet
      &lt;/button&gt;0
  
      &lt;?php 
      echo '&lt;h1&gt;' . $Likes . '&lt;/h1&gt;'; 
      ?&gt;
  </code></pre>
  
  <p>Result
  <a href="https://i.stack.imgur.com/7G1rE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7G1rE.jpg" alt="Result"></a></p>
  
  <p>www.mySite/DEMO/PHP/addLike.php</p>
  
  <pre><code>Fatal error: Uncaught Error: Call to undefined function mysql_query() in /storage/ssd4/786/4680786/public_html/DEMO/PHP/addLike.php:4 Stack trace: #0 {main} thrown in /storage/ssd4/786/4680786/public_html/DEMO/PHP/addLike.php on line 4
  </code></pre>
  
  <p>and yes i have established a connection to the database 
  EDIT: Dont mind the random "0" after the button tag</p>