title: Change backslash to slash in PHP
body: <p>I have a database that opens images that I have in a folder. I can delete the entry from the database but not the image. The path of the image in the database contains backslash, but the path of the folder to be deleted has slash. I need to change the backslash to slash.</p>
  <p>The database path is: fotos\mural\foto.jpg</p>
  <p>The folder I want to delete is: ../../fotos/mural/foto.jpg</p>
  <p>This is my scripy that does NOT work.</p>
  <pre><code>&lt;?php
  $v1 = $_GET['identifica'];
              $link = mysqli_connect(&quot;x.mysql.db&quot;, &quot;x&quot;, &quot;x&quot;);
              $database = mysqli_select_db($link, &quot;xbecedqkxbisbe&quot;);   
              mysqli_set_charset( $link, &quot;utf8&quot;);           
              $string = &quot;SELECT * FROM mural WHERE id= $v1&quot;;
              $resultat = mysqli_query($link, $string);    
              while ($fila = mysqli_fetch_assoc($resultat)) { 
                  $borra = $fila['Fotomural'];
                  $direc = '(..\..\)';
                  $ara = &quot;'$direc''$borra'&quot;;
                  unlink($ara);
          }   
              $query = &quot;delete from mural where id = '$v1'&quot;;
              mysqli_query($link, $query);        
      ?&gt;
  </code></pre>