我更新了我的代码仍然没有插入,我仍然需要帮助:(
$reference=$_POST['reference'];
$description=$_POST['description'];
$marque=$_POST['marque'];
$quantite=$_POST['quantite'];
$type=$_POST['type'];
$id_s_equip=88;
$insert="insert into piece (design_piece, type, marque, qte, id_s_equip,description) VALUES ( ?,?,?,?,?,?)";
$stmt = mysqli_prepare($c, $insert);
mysqli_stmt_bind_param($stmt,'ssisis',$reference,$marque,$quantite,$type,
$id_s_equip,$description);
mysqli_stmt_execute($stmt);
print(mysqli_stmt_affected_rows($stmt));