Thursday, March 31, 2016

Menuliskan Source Code di Blogspot

Menuliskan Source Code di Blogspot

Menggunakan codeformatter

Contoh ke-1

1:  /**  
2:   * Namafile : config.php   
3:   * ----------------------------*/  
4:  $dbhost = 'localhost';   
5:  $dbuser = 'root';   // ini berlaku di xampp  
6:  $dbpass = '';     // ini berlaku di xampp  
7:  $dbname = 'database_kita';  
8:  // melakukan koneksi ke database  
9:  $connect = new mysqli($dbhost,$dbuser,$dbpass,$dbname);  
10:  // cek koneksi yang kita lakukan berhasil atau tidak  
11:  if ($connect->connect_error) {  
12:    // jika terjadi error, matikan proses dengan die() atau exit();  
13:    die('Maaf koneksi gagal: '. $connect->connect_error);  
14:  }  

Contoh ke-2
Menggunakan formatmysourcecode

<?php
/**
 * Namafile : config.php 
 * ----------------------------*/
 
$dbhost = 'localhost'; 
$dbuser = 'root';     // ini berlaku di xampp
$dbpass = '';         // ini berlaku di xampp
$dbname = 'database_kita';
 
// melakukan koneksi ke database
$connect = new mysqli($dbhost,$dbuser,$dbpass,$dbname);
 
// cek koneksi yang kita lakukan berhasil atau tidak
if ($connect->connect_error) {
   // jika terjadi error, matikan proses dengan die() atau exit();
   die('Maaf koneksi gagal: '. $connect->connect_error);
}

40 comments:

  1. http://51054-rahandinoorpasha.blogspot.co.id/

    ReplyDelete
  2. http://farizputradandi.blogspot.co.id/2017/09/blog-post_7.html

    ReplyDelete
  3. https://muhtaufiqulsadi.blogspot.co.id/2017/09/blog-post_7.html

    ReplyDelete
  4. https://brilianwm.blogspot.co.id/2017/09/brilian-widya-mustofa-5114100047.html

    ReplyDelete
  5. https://dhafah16.blogspot.co.id/2017/09/profil-mahasiswa.html

    ReplyDelete
  6. http://muhajirabdullatif.blogspot.co.id/2017/09/profil.html

    ReplyDelete
  7. https://rifqimuktiw.blogspot.co.id/2017/09/identitas.html

    ReplyDelete
  8. http://nuzhamusyafira.blogspot.co.id/2017/09/blog-post.html?m=1

    ReplyDelete
  9. http://m-khairuddin16.blogspot.com/2017/09/blog-post.html

    ReplyDelete
  10. http://farizpurnomo.blogspot.co.id/2017/09/blog-post_7.html

    ReplyDelete
  11. http://hafidsb30.blogspot.co.id/2017/09/blog-post.html

    ReplyDelete
  12. Deddy Aditya P. 5116100069
    https://adityapramanapbo.blogspot.co.id/?m=1

    ReplyDelete
  13. https://ilhamsyamsuddin.blogspot.co.id/2017/09/

    ReplyDelete
  14. http://bayutakariputra.blogspot.co.id/2017/09/biodata.html

    ReplyDelete
  15. https://saniyatulmawaddah.blogspot.co.id/2017/09/biodata.html

    ReplyDelete
  16. http://riosurya12.blogspot.co.id/2017/09/blog-post_7.html#more

    ReplyDelete
  17. https://aidilabdillah98.blogspot.co.id/2017/09/biodata.html

    ReplyDelete
  18. http://rifqiaramadhan.blogspot.co.id/2017/09/blog-post.html

    ReplyDelete
  19. https://aznisafajriyati.blogspot.co.id/

    ReplyDelete
  20. http://fanlya.blogspot.co.id/2017/09/biodata.html

    ReplyDelete
  21. http://catatankesatria.blogspot.co.id/2017/09/tak-kenal-maka-tak-sayang.html

    ReplyDelete
  22. http://dennashassel.blogspot.co.id/2017/09/nama-hassel-adjani.html

    ReplyDelete
  23. Faridatul N.A 5116100010
    https://fafaaidah20.blogspot.co.id/2017/09/nama-n.html

    ReplyDelete
  24. https://yoshimashima.blogspot.co.id/

    ReplyDelete
  25. http://farrasrabbani.blogspot.co.id/2017/09/blog-post_7.html

    ReplyDelete
  26. http://vickymuhammad16.blogspot.co.id/2017/09/profil.html

    ReplyDelete
  27. This comment has been removed by the author.

    ReplyDelete
  28. https://muzayyinamrullah.blogspot.com/2017/09/blog-post.html

    ReplyDelete
  29. http://nizar07zulmi.blogspot.co.id/

    ReplyDelete
  30. https://poedjarizki.blogspot.co.id/2017/09/blog-post.html?m=1

    ReplyDelete
  31. http://nidaregitafauzianti.blogspot.co.id/2017/09/biodata-nama-nida-regita-fauzianti-nrp.html

    ReplyDelete
  32. http://mauliaramdan.blogspot.co.id/2017/09/blog-post.html#more

    ReplyDelete
  33. https://dhanupt.blogspot.com/2017/09/blog-post.html

    ReplyDelete
  34. http://kurniawanajisaputro.blogspot.co.id/p/blog-page.html

    ReplyDelete
  35. This comment has been removed by the author.

    ReplyDelete
  36. http://roziqzuama.blogspot.co.id/2017/09/blog-post.html

    ReplyDelete
  37. Nama : Fitrah Arie Ramadhan
    Kelas : Pemrograman Web D
    Tahun : 2021
    Link Blog : Blogspot

    ReplyDelete