• 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 header location absolute URL

How to increase the PHP upload limits [duplicate]

Get image type from base64 encoded src string

What is the difference between client-side and server-side programming?

How to install PHP composer inside a docker container

Return new collection without modifying original collection

How do I call a php file with axios?

How to install LDAP in Docker php-fpm alpine

CSS file not imported in laravel blade view

Why isn't my PHP exception working?

PHP web3 ERC20 token function call

PHP sort array of objects by two properties

Prevent blank space in pdf pages (DomPdf)

ldap is missing from system when installing adldap2 in laravel

PHP: convert all UTF-8 characters to HTML entities

About Contact Privacy policy Terms and conditions