This code does not insert the path in the database. Instead it inserts the value when the array is set to VALUES as such, thus; ". $ array [0]." When echoing the variable $ path0 1, 2 prints the value. Where can the fault be?
<?php
include('conexion.php');
$title = $_POST['title'];
$description = $_POST['description'];
$array= $_POST['images'];
$url ='files/';
$ruta0= $url.".$array[0].";
$ruta1= $url.".$array[1].";
$ruta2= $url.".$array[2].";
$sql= mysqli_query($mysqli, "INSERT INTO tabla (title, description, img1, img2, img3 ) VALUES( '$title', '$description', '$ruta0', $ruta1, $ruta2);
?>