title: How do i fix a unexpected T string? - PHP
body: <p>My script comes on with an unexpected t string on line five how do i fix this?</p>
  
  <pre><code>&lt;?php
  include_once("../scripts/config.php");
  
  
  $url = mysql_real_escape_string('$_POST['url']'); // LINE 5!
  
  preg_match("/id=(\\d+)/", $url, $matches);
  $like = $matches[1];
  $current_pop = mysql_query("SELECT pop FROM likes WHERE id=$like") or die ("Query failed: " . mysql_error());
  
  
  $pop = $current_pop + 1;  
  
  $update = mysql_query("UPDATE likes SET pop = ".$pop." WHERE id = ".$like."") or die ("Query failed: " . mysql_error());
  
  ?&gt;
  </code></pre>