title: phpword library proplem with foreach?
body: <p>Hello I have a problem with phpword library when i wanna loop my info </p>
  
  <pre><code>    // Education Foreach
  $get_education = $this-&gt;db-&gt;query("SELECT * FROM `member_edu` WHERE Memberid='".$user_id."'");
  foreach ($get_education-&gt;result() as $edu_row){
      $edu_json    = json_decode($edu_row-&gt;edu_details);
      $college     = $edu_json-&gt;College_name;
      $University  = $edu_json-&gt;University_name;
      $Degree      = $edu_json-&gt;Degree_name;
      $Grade       = $edu_json-&gt;Grade;
      $Special     = $edu_json-&gt;Speciality;
      $EduFrom     = $edu_json-&gt;From;
      $EduTo       = $edu_json-&gt;To;
      //// Values for loop in .docx file
      $document-&gt;cloneRow('rowEdu', $get_education-&gt;num_rows());
      $document-&gt;setValue('rowEdu#1', $college);
      $document-&gt;setValue('rowUniversity#1', $University);
      $document-&gt;setValue('rowDegree#1', $Degree);
      $document-&gt;setValue('rowGrade#1', $Grade);
      $document-&gt;setValue('rowSpeciality#1', $Special);
      $document-&gt;setValue('rowEdufrom#1', $EduFrom);
      $document-&gt;setValue('rowEduto#1', $EduTo);
  }
  </code></pre>
  
  <p>This is my code when <code>member_edu</code> have one record everything is ok and when I add new education I get an error with the loop.</p>
  
  <p>Error code: </p>
  
  <pre class="lang-none prettyprint-override"><code>Fatal error: Uncaught exception 'PhpOffice\PhpWord\Exception\Exception' with message 
  
  'Can not clone row, template variable not found or variable contains markup.' in C:\xampp\htdocs\icareer\application\third_party\phpword\Template.php:186 Stack trace:
  #0 C:\xampp\htdocs\icareer\application\views\resume\preview_view.php(59): PhpOffice\PhpWord\Template-&gt;cloneRow('rowEdu', 2)
  #1 C:\xampp\htdocs\icareer\system\core\Loader.php(833): include('C:\xampp\htdocs...')
  #2 C:\xampp\htdocs\icareer\system\core\Loader.php(419): CI_Loader-&gt;_ci_load(Array)
  #3 C:\xampp\htdocs\icareer\application\controllers\ci_resume.php(722): CI_Loader-&gt;view('resume/preview_...', Array)
  #4 [internal function]: CI_Resume-&gt;preview()
  #5 C:\xampp\htdocs\icareer\system\core\CodeIgniter.php(359): call_user_func_array(Array, Array)
  #6 C:\xampp\htdocs\icareer\index.php(202): require_once('C:\xampp\htdocs...') #7 {main} thrown in C:\xampp\htdocs\icareer\application\third_party\phpword\Template.php on line 186
  </code></pre>
  
  <p>I don't what can I do this is first time work in PHP word library can anyone help me? </p>