title: Mysql query not working properly : SELECT * FROM 'table' WHERE 'column' = 'some_string'
body: <p>I have problem making this to work. I wannt to select row from database and render it to list. This is my code:</p>
  
  <pre><code>&lt;ul class = "list"&gt;
    &lt;li&gt;
    &lt;?php
      $x = 'some_string';
      $title = 'title';
  
      $dbc = mysqli_connect('localhost', 'root', '', 'database') or die('Error connecting');
      $query = "SELECT * FROM table WHERE column ==$x ORDER BY procenat DESC LIMIT 5";
      $data = mysqli_query($dbc, $query);
    ?&gt;
     &lt;div id = "listdiv"&gt;
    &lt;?php
      while ($row = mysqli_fetch_array($data)) {
    ?&gt;
      &lt;h4&gt;&lt;?php echo $row[$title]; ?&gt; &lt;/h4&gt;
    &lt;?php 
      }
      mysqli_close($dbc);
    ?&gt;
     &lt;/div&gt; &lt;/li&gt; &lt;/ul&gt;
  </code></pre>
  
  <p>I tried with LIKE '%$x%' and that didn't work as well. And i tried ...  column = $x</p>