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
    
  
  
    
  | { | |
| "ref_country_codes" : [ | |
| { | |
| "country" : "Albania", | |
| "alpha2" : "AL", | |
| "alpha3" : "ALB", | |
| "numeric" : 8, | |
| "latitude" : 41, | |
| "longitude" : 20 | |
| }, | 
  
    
      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
    
  
  
    
  | <html> | |
| <head> | |
| <script src="https://apis.google.com/js/platform.js" async defer></script> | |
| <meta name="google-signin-client_id" content="XXXXXXXXXXXX.apps.googleusercontent.com"> | |
| <script> | |
| function onSignIn(googleUser) { | |
| console.log(googleUser.getAuthResponse().id_token) | |
| } | |
| function signOut() { | |
| var auth2 = gapi.auth2.getAuthInstance(); | 
  
    
      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 | |
| $actualDiskon = 12000; | |
| $diskon = 10000; | |
| $diskonA = 10; | |
| $diskonB = 10; | |
| $realDiskonA = 100 / ($diskonA+$diskonB) * $diskonA; | |
| $realDiskonB = 100 / ($diskonA+$diskonB) * $diskonB; | 
  
    
      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
    
  
  
    
  | { | |
| "success": 1, | |
| "data": [ | |
| { | |
| "id" : 2, | |
| "name": "Medan" | |
| }, | |
| { | |
| "id" : 3, | |
| "name": "Palembang" | 
  
    
      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 | |
| /** | |
| * @Author Rian (godamri@gmail.com) | |
| */ | |
| class Database | |
| { | |
| /* | |
| * Database credentials | |
| */ | |
| private $host = '127.0.0.1'; | 
  
    
      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 | |
| $data = array(array("nama"=>"Budi","alamat"=>"disana"),array("nama"=>"Ayah Budi","alamat"=>"Serumah Budi")); | |
| echo "<table> | |
| <tr> | |
| <th>nama</th><th>alamat</th> | |
| </tr>"; | |
| foreach ( $data as $ind=>$orang ){ | |
| echo "<tr> <td>" . $orang['nama'] . "</td><td>" . $orang['alamat'] . "</td></tr>"; | |
| } | |
| echo "</table>"; | 
  
    
      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
    
  
  
    
  | <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
| <script> | |
| $(document).ready(function(){ | |
| $("#ambil").click(function(){ | |
| $.ajax({ | |
| type:"get", | |
| url: "data.php", | 
  
    
      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
    
  
  
    
  | <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| span#buka-surat{ | |
| border:1px solid brown; | |
| padding: 2px; | |
| cursor:pointer; | |
| } | |
| </style> | 
  
    
      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 | |
| $batas=7; | |
| mysql_connect('localhost','root',''); | |
| mysql_select_db('berita'); | |
| if (isset($_GET["hal"])) { $hal = $_GET["hal"]; } else { $hal=1; }; | |
| $mulai = ($hal-1) * $batas; | |
| $sql = "SELECT * FROM post LIMIT $mulai, $batas"; | |
| $hasil = mysql_query ($sql); | |
| ?> | 
  
    
      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 | |
| function bedanya($awal,$akhir){ | |
| $bedanya = abs(strtotime($akhir) - strtotime($awal)); | |
| $tahun = floor($bedanya / (365*60*60*24)); | |
| $bulan = floor(($bedanya - $tahun * 365*60*60*24) / (30*60*60*24)); | |
| $hari = floor(($bedanya - $tahun * 365*60*60*24 - $bulan*30*60*60*24)/ (60*60*24)); | |
| return array("tahun"=>$tahun,"bulan"=> $bulan ,"hari"=> $hari); | |
| } | 
NewerOlder