title: PHP From string to two variables
body: <p>In my db there is a table that have some values like this[string]</p>
  
  <pre><code>100/100
  50/100
  40/80
  7/70
  </code></pre>
  
  <p>I need to change this values in</p>
  
  <pre><code>100%
  50%
  50%
  10%
  </code></pre>
  
  <p>How can i do this using only PHP/mysql code?</p>
  
  <p>EDIT:this is the code:</p>
  
  <pre><code>foreach ($html-&gt;find('div.stat') as $status_raw){
      $status = $tag_pic_raw-&gt;src;
      $status = mysql_real_escape_string($status);
      $data-&gt;query("INSERT IGNORE INTO `tb` (`value`) VALUES ('".$status."')");
  }
  </code></pre>
  
  <p>I have used a DOM inspector to get info from another site</p>