• 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

How to install PHP composer inside a docker container

WHM Enabling mod_rewrite

mysql slow on updates for a well optimized query

advanced custom fields wordpress custom class

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

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

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

How to Install Composer Require doctrine/dbal

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

I cannot create a auto generated date time in mysql workbench

How can i call a function that executes an fpdf based on the choice of a form selector?

Load a .env file with PHP

Add a text next to stock quantity if it is less than 10 in Woocommerce single product

Call to a member function fetch_field() on a non-object MySQLiDB

Laravel Nova, route not found

About Contact Privacy policy Terms and conditions