title: Make row yellow if $_GET is
body: <p><strong>Intro</strong></p>
  
  <p>I have a system when you click edit and submit the form, it will display in the URL as an $_GET with the ID (See the GIF for an example):</p>
  
  <p><a href="https://i.stack.imgur.com/wa1EW.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wa1EW.gif" alt="enter image description here"></a></p>
  
  <p><strong>Now what's the problem?</strong></p>
  
  <p>I want to have the ROW that has changed (so the <code>&lt;tr&gt;</code>) light up yellow so you know what you've edited, I have tried to do this (see the code below) but that didn't do the job.</p>
  
  <p>Maybe you can help me out? My brain hurts of thinking for a solution..</p>
  
  <p><em>I added my 'solution' to line 5 (it doesn't work, though.)</em></p>
  
  <pre><code>$changer = $_GET['id'];
  echo "&lt;table border='1' cellpadding='10'&gt;";
  echo "&lt;tr&gt;&lt;th&gt;ID&lt;/th&gt;&lt;th&gt;Date&lt;/th&gt;&lt;th&gt;Message&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;&lt;/th&gt;&lt;/tr&gt;";
  while ($row = $result-&gt;fetch_object()) {
  echo "&lt;tr&gt;" . if (isset($_GET['id']) &amp;&amp; $_GET['id'] == $changer) { echo ' class="yellow"'; };
  echo "&lt;td&gt;" . $row-&gt;id . "&lt;/td&gt;";
  echo "&lt;td&gt;" . $row-&gt;firstname . "&lt;/td&gt;";
  echo "&lt;td&gt;" . $row-&gt;lastname . "&lt;/td&gt;";
  echo "&lt;td&gt;&lt;a href='records.php?id=" . $row-&gt;id . "'&gt;&lt;img src='images/edit.png' alt='Edit' title='Edit update' /&gt;&lt;/a&gt;&lt;/td&gt;";
  echo "&lt;td&gt;&lt;a href='delete.php?id=" . $row-&gt;id . "'&gt;&lt;img src='images/delete.png' alt='Delete' title='Delete update' /&gt;&lt;/a&gt;&lt;/td&gt;";
  echo "&lt;/tr&gt;";
  }
  echo "&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;a href='records.php'&gt;&lt;img src='images/add.png' alt='Add' title='Add update' /&gt;&lt;/a&gt;&lt;/tr&gt;";
  echo "&lt;/table&gt;";
  }
  </code></pre>
  
  <p>Thanks in advance, fellow stacker.</p>