title: SQL query not showing any results (closed)
body: <p>I'm making now activation page for my website. I'm running there SQL query which looks like this:</p>
  
  <p><code>SELECT * FROM <code>Users</code> WHERE token = '545f9390-fc09-11e9-abd0-9822efb9cbff'</code></p>
  
  <p>But when I run it, it shows no results. Token of course exists in database. I tried running this query in phpmyadmin but is hasn't worked either. How can i modify this query to get matching result. In query i tried <code>LIKE</code> insted of <code>=</code> but it hasn't worked.</p>
  
  <p>My php code:</p>
  
  <pre><code>&lt;?php
  
      include "dbConnection/dbconn.php";
      require 'vendor/autoload.php';
  
      use Ramsey\Uuid\Uuid;
      use Ramsey\Uuid\Exception\UnsatisfiedDependencyException;
  
  
      if (!empty($_GET['token'])) {
          $token = $_GET['token'];
          $isValid = Uuid::isValid($token);
          if(!$isValid) {
              echo "Invalid token!";
              die();
          }
          $sql = "SELECT * FROM `Users` WHERE `token` = '$token'"; 
          echo $sql;
          $result = $conn-&gt;query($sql);
          $result = $result-&gt;fetch();
          print_r($result);
      } else {
          echo "Account cannot be activated.";
          echo "Sorry for inconvenience.";
      }
  
  ?&gt;
  </code></pre>