• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

How to insert data from multiple select dropdown values into database?

php


PHP Snippet 1:

$selection = $_REQUEST['purchase_group'];

PHP Snippet 2:

<select id="purchase_group" name="purchase_group[]" class="form-control" multiple="multiple">

Related Snippets

I want to store data in new index as per my key in php [duplicate]

mysql_result is defined but mysql_free_result warns it expected a resource

Create tags in laravel post publishing

How do I pass the dynamic output of a php variable or php function to a CSS variable?

How to loop sql table data inside a html table

Show Custom Data in Woocommerce Order Details Admin Area

Symfony - "framework.test" config is not set to true

Yii2 redirecting to previous page after login

Laravel Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) on a sub query with "ROW_NUMBER() OVER PARTITION"

Send same name multiple checkbox values via ajax

Laravel 4 Redirect::back() not going to previous page (refreshing current page)

How to get an Array value inside an object in an array Php [duplicate]

Not able to override collapsible.js in magento 2

Zig-zag scan an N x N array

How to pass data to all views in Laravel 5?

About Contact Privacy policy Terms and conditions