• 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

woocommerce change position of price

Change the alert text on add to cart action without selected variation in Woocommerce

possible options to create pdf file using html elements to generate invoice in php and codeigniter

Read users and passwords from a txt file

Require a class from another class - php

Can't find vendor/autoload.php for Ratchet

If action is on a different page do I use fwrite function

how to sort by a custom appended relation to model

Google Gmail API - How to login programatically?

PHP Imap , php 7.4.3 on mac osx catalina

ORA-12546: TNS:permission denied error connection to remote oracle server

Fatal error: Trait 'LaminasDbAdapterLaminasDbAdapterAdapterInterface' not found in /var/www/vendor/laminas/laminas-db/src/Adapter/Adapter.php

Star rating with half star support

Laravel insert dynamic input values with radio button

Zig-zag scan an N x N array

About Contact Privacy policy Terms and conditions