• 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

Can we define variables in `.tpl` files?

MySQL - Connection failed: No route to host

PHP error: "The zip extension and unzip command are both missing, skipping."

Losing session data after POST from third party website

PHP - CURL using HTTPS [closed]

display WooCommerce “Add to cart” button with short-code [add_to_cart ] dynamically

WordPress Subquery returns more than 1 row on SELECT

Laravel/docker-compose/redis - Class 'Redis' not found

how to youtube api data to print in toolset metabox using a button click before save-post

Laravel Pagination links() not working

Get lat/lon from google maps url ftid (hex)

PHP password_verify

Combine array with same value and add other [duplicate]

PHP to search within txt file and echo the whole line

Composer Warning: openssl extension is missing. How to enable in WAMP

About Contact Privacy policy Terms and conditions