title: Mysql Date_format error
body: <p>I always get this error message:<br>
  Parse error: syntax error, unexpected T_STRING in /myroot/public_html/test.php on line 5<br>
  This is what the 5th line looks like:  </p>
  
  <pre><code>$sql = mysql_query("SELECT date_format(active,'%a/%b/%Y') AS active FROM members")  
  or die mysql_error();  
  </code></pre>
  
  <p>I can't find anything wrong with the code as i copied it from another stackoverflow question<br>
  Here's the whole script:<br>
      $sql = mysql_query("SELECT date_format(active,'%a/%b/%Y') AS active FROM members")<br>
      or die mysql_error();<br>
      while ($results = mysql_fetch_assoc($sql)) {<br>
      $date = $results["active"];<br>
      $user = $results["user"];<br>
      }</p>