title: Uncaught SyntaxError: Unexpected identifier
body: <pre><code>&lt;link type='text/css' rel='stylesheet' href='./css/style.css'&gt;
  &lt;link type='text/css' rel='stylesheet' href='css/dataTable.css'&gt;
  
  &lt;?php
  
      include("config.php");
      include("meniu.php");
      include("meniuV.php");
      echo "&lt;script type='text/javascript' charset='utf8' src='//code.jquery.com/jquery-1.10.2.min.js'&gt;&lt;/script&gt;";
      echo "&lt;script type='text/javascript' charset='utf8' src='//cdn.datatables.net/1.10.4/js/jquery.dataTables.js'&gt;&lt;/script&gt;";
  
      session_start();
  
  ?&gt;
  &lt;div id="bilet" class="BiletCSS"&gt;
  
  &lt;/div&gt;
  &lt;?php
  
      $sql="SELECT * FROM meciuri WHERE data='2015-01-10'";
      $resursa=mysql_query($sql);
  
      if(!$resursa)
      {
          exit(mysql_error());
      }
      if(mysql_num_rows($resursa)==0)
      {
          print 'Nu s-a gasit niciun rezultat!&lt;br&gt;'; 
      }
      echo "&lt;div class='ziua1image'&gt;";
      echo "&lt;img src='./images/fotbal2.jpg' style='width:600px;height:300px'&gt;";
      echo "&lt;/div&gt;";
  
      echo "&lt;div class='div'&gt;";
      echo "&lt;table  id='tabelMeciuri' class='display' cellspacing='0'&gt;";
      echo "&lt;thead&gt;";
      echo "&lt;tr class='data_cota'&gt;";
      echo "&lt;td&gt;Uefa Champions League&lt;/td&gt;";
      echo "&lt;td&gt;1&lt;/td&gt;";
      echo "&lt;td&gt;X&lt;/td&gt;";
      echo "&lt;td&gt;2&lt;/td&gt;";
      echo "&lt;td&gt;1x&lt;/td&gt;";
      echo "&lt;td&gt;x2&lt;/td&gt;";
  
      echo "&lt;/tr&gt;";
      echo "&lt;/thead&gt;";
      echo "&lt;tbody&gt;";
  
      $resursa=mysql_query($sql);
  
      while($row = mysql_fetch_array($resursa))
      {
          $idConta1=$row['id_meci']."_1";
          $idConta2=$row['id_meci']."_2";
          $idConta3=$row['id_meci']."_3";
          $idConta4=$row['id_meci']."_4";
          $idConta5=$row['id_meci']."_5";
          $meci1=$row['nume_meci'];
              print' &lt;tr class="ooddd"&gt;
                      &lt;td&gt;' .$row['nume_meci'] . '&lt;/td&gt; 
                      &lt;td&gt;&lt;label id="'.$idConta1.'" onclick="getCota('.$row['id_meci'].','.$meci1.',1)" &gt;' .$row['victorie_1'] . '&lt;/label&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;label id="'.$idConta2.'" onclick="getCota('.$row['id_meci'].',2)" &gt;' .$row['egal_x'] . '&lt;/td&gt;
                      &lt;td&gt;&lt;label id="'.$idConta3.'" onclick="getCota('.$row['id_meci'].',3)" &gt;' .$row['victorie_2'] .'&lt;/td&gt;
                      &lt;td&gt;&lt;label id="'.$idConta4.'" onclick="getCota('.$row['id_meci'].',4)" &gt;' .$row['victorie_egal_1x'] .'&lt;/td&gt;
                      &lt;td&gt;&lt;label id="'.$idConta5.'" onclick="getCota('.$row['id_meci'].',5)" &gt;' .$row['victorie_egal_x2'] .'&lt;/td&gt;
                  &lt;/tr&gt;';
      }
      echo "&lt;/tbody&gt;";
      echo "&lt;/table&gt;";
      echo "&lt;/div&gt;";
  ?&gt;
  
  
  &lt;script&gt;
  function getCota(id,numeMeci,index){
  debugger;
      var idCota="#"+id+"_"+index;
      var idCota2=id+"_"+index;
      $("#bilet").append("&lt;div id='optiune'&gt;&lt;label&gt;"+$(numeMeci).text()+"&lt;/label&gt; &lt;label&gt;"+$(idCota).text()+"&lt;/label&gt; &lt;/div&gt;");
  }
  $(document).ready(function() {
      $('#tabelMeciuri').DataTable();
  } );
  &lt;/script&gt;
  
  &lt;style&gt;
  .BiletCSS{
      width: 350pxpx;
      height: 400px;
      background-color:#989898;
      float: right;
      margin-right: 30px;
  }
  &lt;/style&gt;
  </code></pre>
  
  <p>I want to select one name and one number from database and put them in a separate div, next to the table.
  When i try to select only the number (' .$row['egal_x'] . ') it works but if i want to add the name (' .$row['victorie_1'] . ') i don't get anything in that div and it shows me that error...
  Can someone tell me how i can can fix that?</p>