title: Mysql - Seeing if a value already exist
body: <p>i just want to know how I can fix this. In my database : <a href="https://i.stack.imgur.com/vjo4F.png" rel="nofollow noreferrer">here</a> i have a value of 123. My code is searching for it however it does not find it.</p>
  
  <pre><code>&lt;html&gt;
   &lt;head&gt;
      &lt;?php
          $userid = 123;
          $con = mysqli_connect("","","*","");
          // Check connection
          if (mysqli_connect_errno())
            {
            echo "Failed to connect to MySQL: " . mysqli_connect_error();
            }else{
              echo "Connected";
            }
            echo "123";
          // Perform queries
          $sql_fetch_id = "SELECT * FROM AccessedIds WHERE 64id = '123";
          $query_id = mysqli_query(sql2242953, $sql_fetch_id);
          if(mysqli_num_rows($query_id) ==0) {
              echo "empty";
          }else{
              echo "full";
          }
          mysqli_close($con);
          ?&gt;
    &lt;title&gt;PHP Test&lt;/title&gt;
   &lt;/head&gt;
   &lt;body&gt;
  
   &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Z384K.png" rel="nofollow noreferrer">Data types</a></p>