title: Store multiple rows from mysql database into one single variable
body: <p>this is really hard for me, i'm trying to store multiple rows from my table in mysql into a single variable</p>
  
  <hr>
  
  <pre><code>$mysql_statementJc = "SELECT * FROM `dog`.`cat` WHERE `name` = '$name'";
  $mysql_commandJc = mysql_query($mysql_statementJc);
  
  
   while($row = mysql_fetch_array($mysql_commandJc)){
  
      $followI = $row['industry'];
  
      $groupConcat = $followI . " OR ";
  
      echo $groupConcat;
  }
  </code></pre>
  
  <hr>
  
  <p>This is my appproach, so at the end of it all i can get "sam, john, bob" saved as $groupConcat which can then be used elsewhere.</p>
  
  <p>Many thanks.</p>