• 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

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

How to Generate PDF invoice to XML format using mPDF

XAMPP keeps showing Dashboard/Welcome Page instead of the Configuration Page

Xdebug 3 not showing in phpinfo on m1 Monterey

Laravel Blade checkbox not checked

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

Download & Save Zoom Recording in directory by PHP

I want to display default profile image if user do not have profile image

Using spatie/media-library, how to rename a collection of uploaded files?

Convert every two values of an associative array into key-value pairs

Laravel 8 Multiple Relationships for Factory

merge all files in directory to one text file

Php - Sum up the numbers in an array one by one

Detect if PHP session exists

How can I convert from a{a{} b{}} to a[a[],b[]] using php preg_match?

About Contact Privacy policy Terms and conditions