Hello! I want to create a new file for each file in the database, help the second day I suffer
$error_list = implode(',', $error_list); $success_list = implode(',', $success_list); $success_list_small = implode(',', $success_list_small); $id = $_GET['id']; require_once( $_SERVER['DOCUMENT_ROOT'] . '/bd.php'); $sqlimage .= "INSERT INTO images_big(id, catalog, filename, catalog_small, filename_small) VALUES foreach($success_list as $success_lists){ $sqlimage .=("'.$id.'" ,"'.$uploads_dir.'" ,"'.$success_lists.'" ,"'.$uploads_dir_smale.'" ,"'.$success_list_small.'") }"; $sqlimage.=implode(',',$array); $stmtimg = $pdo->query($sqlimage); $stmtimg->execute();