title: PHP Function produces empty Results no errors
body: <p>A little help if possible. I have a Page that pulls from two data tables (MySQL) and one function is providing empty results.</p>
  
  <pre><code>function ShowClient() {
      global $agent;
      $sql = 'SELECT * FROM nuke_bulletins WHERE user=\'' . $agent . '\' AND isActive="Y" ORDER BY id';
      $client = mysql_query($sql) or die('ERROR: OOPS Something went wrong' . mysql_error());
  
      echo '&lt;center&gt;&lt;p&gt;&lt;b&gt;Current Campaigns&lt;/b&gt;&lt;/p&gt;'; 
  
      // Pull the loop and display the data
      while($row = mysql_fetch_array($client)) {
          $agent = stripslashes($row['user']);
          $campaign = stripslashes($row['id']);
          $title = stripslashes($row['title']);       
          echo '&lt;p&gt;&lt;a href="bullies2.php?op=ShowCampaign&amp;amp;id=' . $campaign . '"&gt;&lt;b&gt;' . $title . '&lt;/b&gt;&lt;/a&gt;&lt;/p&gt;';
      }
  
      echo '&lt;p&gt;Click the Campaign Title to get the Bulletin Code&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;';
      echo '&lt;p align="center"&gt;&lt;a href="bullies2.php"&gt;&lt;b&gt;Return to All Client\'s&lt;/a&gt;&lt;/p&gt;';
  
  }
  </code></pre>
  
  <p>The $agent variable is pulled from a main function that creates a url based on the user ($agent).</p>
  
  <p>What am I doing wrong here?</p>