title: PHP- error when trying to get info from SQL
body: <p>This code is trying to get information from a table called R but I am getting an error on line 6: </p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected T_LOGICAL_OR in get_R.php on line 6</p>
  </blockquote>
  
  <p>I've looked it over as well as a good few of my colleagues and we cant figure it out. Here's a copy of the code:</p>
  
  <pre><code>&lt;?php
  
  function get_R( $s) {
  (
  $t = mysql_query ( $s) ) or die (mysql_error() );
  if (mysql_num_rows($t) == 0) or die ("&lt;br&gt; No data in R&lt;br&gt;");
  
  
  $out = "" ;
  $out .=
      "&lt;table style= \" color:red ; background:line; \" &gt;";
  
  /*................................*/
  while ( $r = mysql_fetch_array($t) ) {
      /*.....................*/
  };
      $out .= "....";
      return $out;
  }
  ?&gt;
  </code></pre>
  
  <p>Any ideas?</p>