Comment insérer dans la bdd ces 3 tableaux :
Code : Tout sélectionner
Array ( [0] => 1 [1] => 10 [2] => 30 )
Array ( [0] => 2 [1] => 20 [2] => 35 )
Array ( [0] => 1 [1] => 20 [2] => 35 )key [1] correspond au champ "weight_max"
key [2] correspond au champ "price"
le requete
Code : Tout sélectionner
$sql = $db->prepare("INSERT INTO ".$_SESSION["table"]." ( weight_min, weight_max, price )
VALUES (:weight_min, :weight_max, :price) ");