daily pastebin goal
69%
SHARE
TWEET

Json Error 2

a guest May 22nd, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     if (isset($_POST['q']))
  3.     {
  4.         $json = '{"content":{"contentTitle":"[LAD] Gegege no Kitaro (2018) - 06v\u00bd [480p & 720p]","excerpt":"v\u00bd | Join Project dengan Lokalsubs dan Durandal","inputTime":"2018-05-09 05:44:35","imgAvatar":"Aisesubs_rjSfzbHzAx.jpg","commentCount":"0"}}';
  5.         echo "000|" . $json;
  6.     }
  7.     else
  8.     {
  9. ?>
  10. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  11.  
  12. <script>
  13.     $.ajax({
  14.                 url: "",
  15.                 type: "POST",
  16.                 data: {
  17.                     "q": "y"
  18.                 },
  19.                 success: function (response) {
  20.                     var result = response.split('|');
  21.                     if (result[0] == "000")
  22.                     {
  23.                         debugger;
  24.                         var dataContent = JSON.parse(result[1]);
  25.                     }
  26.                 }
  27.             });
  28. </script>
  29.  
  30. <?php
  31. }
  32. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top