• 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

Ajax GET request fails in laravel 8

Querying only one row from a one to many relationship laravel

Populate Dynamic Dropdowns List in Codeigniter

array_key_exists(): The first argument should be either a string or an integer

Call to a member function fetch_field() on a non-object MySQLiDB

How to execute sql code based on fetch array

How to separate letters and digits from a string in php

Adding multiple items to WooCommerce cart at once

PHP array, move keys and values to new array, but mix it up

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'column_name' in Laravel

Split comma separated value from table column into rows using mysql?

How can I get new CSRF token in LARAVEL by using ajax

How to update array value in Laravel

User pool client {id}does not exist

How can I make good efficent AJAX live forms with just jQuery and

About Contact Privacy policy Terms and conditions