This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data1 = new stdClass; | |
$data1->id = 10; | |
$data1->url = 11; | |
$data1->otrodato = 12; | |
$data2 = new stdClass; | |
$data2->id = 13; | |
$data2->url = 14; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var db = null; | |
var example = angular.module('starter', ['ionic', 'ngCordova']) | |
.run(function($ionicPlatform, $cordovaSQLite) { | |
$ionicPlatform.ready(function() { | |
if(window.cordova && window.cordova.plugins.Keyboard) { | |
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false); | |
} | |
if(window.StatusBar){ | |
StatusBar.styleDefault(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$interval = 7; | |
$fecha = '2015-02-25'; | |
$date = new DateTime(''.$fecha.''); | |
$date->add(new DateInterval('P'.$interval.'D')); | |
echo $date->format('Y-m-d') . "\n"; | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tablaEntradas = $('#tableAjaxEntradas').DataTable(); | |
$.ajax({ | |
url: 'c_repor/obtenerEntradas', | |
dataType: 'json', | |
type: 'GET', | |
success: function(response){ | |
$.each(response, function(i, object){ | |
var datos = []; | |
var i = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$cadena = "1"; | |
echo str_pad($cadena, 3, "0", STR_PAD_LEFT); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$('#getDatos').click(function(){ | |
$.ajax({ | |
url: 'consulta.php', | |
success: function(data){ | |
$("p").remove(); | |
console.log(data); //<=== Esta puede ser removida; | |
var datos = $.parseJSON(data); | |
console.log(datos); //<=== Esta puede ser removida; | |
$.each(datos, function(i, row) { |
NewerOlder