• 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

Google Calendar API batch request PHP

How do I Post to .txt document before form submits

Saving Data from form to database using AngularJS and php

Unable to uninstall brew php from homebrew

How to Make Laravel Eloquent "IN" Query?

Can I write PHP code across multiple lines per statement?

PHP 8.1: strftime() is deprecated

MySQL - Connection failed: No route to host

Laravel-fopen: failed to open stream: Permission denied

How can I make this nested location configuration use the correct path to call a php program?

Laravel post contact form giving me error 419

I cannot create a auto generated date time in mysql workbench

How to create laravel storage symbolic link for production or sub domain system?

Laravel relationship belongsToMany with composite primary keys

php mysql + create a friend request system

About Contact Privacy policy Terms and conditions