• 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

Loading data from MySQL and populating dropdown select with jQuery Mobile, PHP

phpmysqljquery-mobile


PHP Snippet 1:

header('Content-Type: application/json');
echo json_encode($data);

PHP Snippet 2:

$.each(data,function(index,item) 
{
    $('<option>').val(item.id).html(item.job_name).appendTo("#job_id");
});

Related Snippets

PHP/HTML: Creating A SubMenu

Hide specific products from unlogged users based in product category in WooCommerce

Apply filter array/return terms

How to use a PHP MVC Controller, one thats invoked by calling a URL, to call and execute more than one function? [duplicate]

(Laravel) How to delete multiple models including optional relationships?

TesseractOCR not working for Laravel

Timber: Single post pagination does not work (wp_link_pages)

Detect emoticons in string

Show only featured products in Woocommerce shop page

codeigniter 4 running error first time with xampp

PHP only Hit Counter?

Laravel Schedule not sending email

Project structure for PHP

Using Associative arrays

php 7 php.ini upload_max_filesize not working

About Contact Privacy policy Terms and conditions