title: Query isn't working - printing array value instead of using it withing the query
body: <p>I'm not sure my question makes much sense so I will try my best to explain. Basically, I want the $_GET['quote_id'] to be a condition in the query but it is displaying on the web page instead, I'll post a picture as an example.   </p>
  
  <p>Code.php</p>
  
  <pre><code>&lt;?php
    $connect = mysqli_connect("localhost", "root", "", "quote");
    $query = "select * from `quote` where quote_id = '". $id = print_r($_GET['quote_id'])."'";
  $result = mysqli_query($connect, $query);
  ?&gt;  
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/R9fOT.png" rel="nofollow noreferrer">As you can see, it is displaying on the web page instead of being a part of the query which is my goal</a></p>
  
  <p>Thanks for your help,</p>