title: PHP Parse error: syntax error, unexpected T_IF
body: <p>I looked at many other questions, but I can't find my own answer in it.
  here is my syntax error (unexpeted T_IF):</p>
  
  <pre><code>while(($rij1 = mysql_fetch_object($result1))
  and( if ($voornaam=NULL) {
              $rij2 = ' ';}
  elseif($voornaam!=NULL){
              $rij2 = mysql_fetch_object($result2);})
  </code></pre>
  
  <p>I looked at the line before the syntax, but I couldn't find what is wrong...
  Does someone know it?</p>