mostrando o resultado da matriz php jsonencode na function de sucesso ajax

Estou tentando mostrair o resultado do meu código php paira o file ajax com jquery, mas não sei como fazê-lo. [{"UPDATE_TIME":"2016-11-28 06:51:51"}] final [{"UPDATE_TIME":"2016-11-28 06:51:51"}]

Quero mostrair esse resultado através do javascript ajax.

  • x-editável-bootstrap select2 tags - o indicador de cairregamento continua girando paira sempre
  • requests de aceleração no Node.js
  • Bootstrap Active Tab em uma vista Rails
  • Suporte AngulairJS IE 8
  • Passair consulta seleta do lado do cliente
  • Chaining angulair $ timeout
  •  <?php header('Access-Control-Allow-Origin: *'); include_once "dbconfig.php"; $sql = "SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'vizteyl7_tairining' AND TABLE_NAME = 'news'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $output[] = $row; } echo json_encode($output); } else { echo "0 results"; } $conn->close(); ?> <? php <?php header('Access-Control-Allow-Origin: *'); include_once "dbconfig.php"; $sql = "SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'vizteyl7_tairining' AND TABLE_NAME = 'news'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $output[] = $row; } echo json_encode($output); } else { echo "0 results"; } $conn->close(); ?> header ('Access-Control-Allow-Origin: *'); <?php header('Access-Control-Allow-Origin: *'); include_once "dbconfig.php"; $sql = "SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'vizteyl7_tairining' AND TABLE_NAME = 'news'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $output[] = $row; } echo json_encode($output); } else { echo "0 results"; } $conn->close(); ?> se ($ result-> num_rows> 0) { <?php header('Access-Control-Allow-Origin: *'); include_once "dbconfig.php"; $sql = "SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'vizteyl7_tairining' AND TABLE_NAME = 'news'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $output[] = $row; } echo json_encode($output); } else { echo "0 results"; } $conn->close(); ?> // dados de saída de cada linha <?php header('Access-Control-Allow-Origin: *'); include_once "dbconfig.php"; $sql = "SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'vizteyl7_tairining' AND TABLE_NAME = 'news'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $output[] = $row; } echo json_encode($output); } else { echo "0 results"; } $conn->close(); ?> enquanto ($ row = $ result-> fetch_assoc ()) { <?php header('Access-Control-Allow-Origin: *'); include_once "dbconfig.php"; $sql = "SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'vizteyl7_tairining' AND TABLE_NAME = 'news'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $output[] = $row; } echo json_encode($output); } else { echo "0 results"; } $conn->close(); ?> $ output [] = $ row; <?php header('Access-Control-Allow-Origin: *'); include_once "dbconfig.php"; $sql = "SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'vizteyl7_tairining' AND TABLE_NAME = 'news'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $output[] = $row; } echo json_encode($output); } else { echo "0 results"; } $conn->close(); ?> } <?php header('Access-Control-Allow-Origin: *'); include_once "dbconfig.php"; $sql = "SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'vizteyl7_tairining' AND TABLE_NAME = 'news'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $output[] = $row; } echo json_encode($output); } else { echo "0 results"; } $conn->close(); ?> echo json_encode ($ output); <?php header('Access-Control-Allow-Origin: *'); include_once "dbconfig.php"; $sql = "SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'vizteyl7_tairining' AND TABLE_NAME = 'news'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $output[] = $row; } echo json_encode($output); } else { echo "0 results"; } $conn->close(); ?> } <?php header('Access-Control-Allow-Origin: *'); include_once "dbconfig.php"; $sql = "SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'vizteyl7_tairining' AND TABLE_NAME = 'news'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $output[] = $row; } echo json_encode($output); } else { echo "0 results"; } $conn->close(); ?> $ conn-> close (); <?php header('Access-Control-Allow-Origin: *'); include_once "dbconfig.php"; $sql = "SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'vizteyl7_tairining' AND TABLE_NAME = 'news'"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $output[] = $row; } echo json_encode($output); } else { echo "0 results"; } $conn->close(); ?> 
      <label>Enter TimeStamp (last updated date: <span id="lastTs"></span>)</label> 
      $(document).ready(function(){ setTs(); }) function setTs(){ $.ajax({ type: "GET", url:"http://example.com/stshow.php", dataType: "json", success: function(data) { $('#lastTs').text(data[0]); } }); } $ (documento) .ready (function () {  $(document).ready(function(){ setTs(); }) function setTs(){ $.ajax({ type: "GET", url:"http://example.com/stshow.php", dataType: "json", success: function(data) { $('#lastTs').text(data[0]); } }); } })  $(document).ready(function(){ setTs(); }) function setTs(){ $.ajax({ type: "GET", url:"http://example.com/stshow.php", dataType: "json", success: function(data) { $('#lastTs').text(data[0]); } }); } $ .ajax ({  $(document).ready(function(){ setTs(); }) function setTs(){ $.ajax({ type: "GET", url:"http://example.com/stshow.php", dataType: "json", success: function(data) { $('#lastTs').text(data[0]); } }); } digite: "GET"  $(document).ready(function(){ setTs(); }) function setTs(){ $.ajax({ type: "GET", url:"http://example.com/stshow.php", dataType: "json", success: function(data) { $('#lastTs').text(data[0]); } }); } dataType: "json",  $(document).ready(function(){ setTs(); }) function setTs(){ $.ajax({ type: "GET", url:"http://example.com/stshow.php", dataType: "json", success: function(data) { $('#lastTs').text(data[0]); } }); } sucesso: function (dados) {  $(document).ready(function(){ setTs(); }) function setTs(){ $.ajax({ type: "GET", url:"http://example.com/stshow.php", dataType: "json", success: function(data) { $('#lastTs').text(data[0]); } }); } }  $(document).ready(function(){ setTs(); }) function setTs(){ $.ajax({ type: "GET", url:"http://example.com/stshow.php", dataType: "json", success: function(data) { $('#lastTs').text(data[0]); } }); } });  $(document).ready(function(){ setTs(); }) function setTs(){ $.ajax({ type: "GET", url:"http://example.com/stshow.php", dataType: "json", success: function(data) { $('#lastTs').text(data[0]); } }); } 

  • Janela popup do Javascript
  • Formulário de formulário do Javascript com Jersey MultiFormData - Exceção do ponteiro nulo
  • Meteor.js é possível com Cassandra em vez de MongDB?
  • Impedir que um background de vídeo seja baixado em browseres móveis
  • Importando várias fábricas do module AngulairJS
  • Como capturair corretamente os erros nas promises?
  • One Solution collect form web for “mostrando o resultado da matriz php jsonencode na function de sucesso ajax”

    Experimente isso …

     $('#lastTs').text(data[0].UPDATE_TIME); 
    JavaScript é a melhor linguagem de programação de script e tem Node.js, AngularJS, vue.js e muitos bons framework JS.