Problème UPDATE

image']['name']; $imgTmp = $_FILES['image']['tmp_name']; $imgSize = $_FILES['image']['size']; if (empty($name)) { $error = 'Renseigner le nom du produit'; }elseif (empty($description)) { $error = 'mettre une description du produit'; }elseif

18
Mieux organiser ses Media Queries

image: url(https://www.gifmania.fr/Gif-Animes-Paysages/Animations-Vagues/Vagues-84343.gif); color: white; } .Politique:active{ background-image: url(https://www.gifmania.fr/Gif-Animes-Paysages/Animations-Vagues/Vagues-84343.gif); color: blue; } .Contact:active{ background-image: url(https://www.gifmania.fr/Gif-Animes-Paysages/Animations-Vagues/Vagues-84343.gif); } .Solidarité:active{ background-image: url(https://www.gifmania.fr

0
crop et png

image); break; case 'image/JPG': $source = imagecreatefromjpeg($source_image); break; case 'image/gif': $source = imagecreatefromgif($source_image); break; case 'image/png': $source = imagecreatefrompng($source_image); break; case 'image/PNG': $source = imagecreatefrompng($source_image); break

5
Afficher un article en récupérant son id

images = !empty($anouncement['images']) ? $anouncement['images'] : ['/no_image.png']; // array if (!empty($images)) { //boucle sur les images echo' '; echo ' '; foreach ($images as $img) { echo ' '; } echo " "; // fin div slider . echo ' '; echo '

0
Besoin d'aide

image: image, left: getLeft(image), top: getTop(image), right: getRight(image), down: getDown(image) } return cellule; } function getLeft(image) { if (image === 0) return true; return false } function getRight(image) { if (image

2
Initialiser collection

Image $image): self { if (!$this->images->contains($image)) { $this->images[] = $image; $image->setAd($this); } return $this; ez votre code en utilisant "```" pour bien le mettre en forme. (ne copiez pas trop

12
easyAdmin, peu importe l'utilisateur connecté

image; } public function setImage(?string $image): self { $this->image = $image; return $this; } /** * @return Collection|Category[] */ public function getCategory(): Collection { return $this->category; } public function addCategory(Category $category): self { if (!$this

2
Problèmes suppression avec CSRF Token et Ajax

image->getName(); unlink($this->getParameter('images_directory') . '/' . $nom); $em->remove($image); $em->flush(); return new JsonResponse(['success' => 1]); } else { return new JsonResponse(['error' => 'Token invalide'], 400); } } ``` _galerie.html.twig : ``` {% for image in images

1
php floating deprecated error message ?

image $fichier = md5(uniqid(rand(), true)) . '.webp'; //Récupération des infos de l'image $picture_infos = getimagesize($picture); if ($picture_infos === false) { throw new Exception('Format d\'image incorrect'); } //Vérification

0
FILEUPLOAD [SYMFONY] -> Could not create target directory

image = $request->files->get('img'); $status = 'success'; $uploadedURL = ''; $message = ''; if (($image instanceof UploadedFile) && ($image->getError() == '0')) { if (($image->getSize() < 20000000)) { $originalName = $image->getClientOriginalName(); $name_array = explode('.', $originalName); $file_type = $name

1