Aucunes infos sont transmises dans ma base de données mysql, si qqun peut m’aider ce serait gentil.
Voici le script:
<?php mysql_connect("localhost", "XXX", "4UzCCuLL"); mysql_select_db("dc_cars_be"); $titre = $_REQUEST["titre"]; $prix = $_REQUEST["prix"]; $immatriculation = $_REQUEST["immatriculation"]; $carburant = $_REQUEST["carburant"]; $cv = $_REQUEST["cv"]; $couleur = $_REQUEST["couleur"]; $transmission = $_REQUEST["transmission"]; $vitesses = $_REQUEST["vitesses"]; $ccm = $_REQUEST["ccm"]; $portes = $_REQUEST["portes"]; $options = $_REQUEST["options"]; $infos = $_REQUEST["infos"]; $newname1 = $_REQUEST["rename1"]; $chemin1 = "./img/".$newname1; $chemindossier ="/customers/dc-cars.be/dc-cars.be/httpd.www/img/".$newname1; move_uploaded_file($HTTP_POST_FILES["photo1"]["tmp_name"],$chemindossier); $newname2 = $_REQUEST["rename2"]; $chemin2 = "./img/".$newname2; $chemindossier ="/customers/dc-cars.be/dc-cars.be/httpd.www/img/".$newname2; move_uploaded_file($HTTP_POST_FILES["photo2"]["tmp_name"],$chemindossier); $newname3 = $_REQUEST["rename3"]; $chemin3 = "./img/".$newname3; $chemindossier ="/customers/dc-cars.be/dc-cars.be/httpd.www/img/".$newname3; move_uploaded_file($HTTP_POST_FILES["photo3"]["tmp_name"],$chemindossier); $newname4 = $_REQUEST["rename4"]; $chemin4 = "./img/".$newname4; $chemindossier ="/customers/dc-cars.be/dc-cars.be/httpd.www/img/".$newname4; move_uploaded_file($HTTP_POST_FILES["photo4"]["tmp_name"],$chemindossier); mysql_query("INSERT INTO annonces (photo1, photo2, photo3, photo4, titre, prix, immatriculation, carburant, cv, couleur, transmission, vitesses, ccm, portes, options, infos) VALUES('$chemin1','$chemin2','$chemin3','$chemin4','$titre','$prix', '$immatriculation', '$carburant', '$cv', '$couleur', '$transmission', '$vitesses', '$ccm', '$portes', '$options', '$infos');"); echo 'Annonce ajoutée!'; ?>Merci d’avance