14 Juni 2012

Code Simpan, Cari, Edit dan hapus data pada Visual Basic 6.0

              Berikut adalah comtoh penulisan code vb6 untuk simpan, cari, ubah dan hapus data dengan menggunakan Data Control, ADODC, dan ADODB. (codenya basic/pemula)

Code-code dibawah ini hanya sebatas code-code dasar untuk simpan, cari, ubah dan hapus, tidak disertakan code-code validasi, penanganan error ataupun code untuk koneksinya.



7 Juni 2012

efek - efek pada blog

Sebelum kita masuk ke intinya, terlebih dahulu saya ingatkan pada sobat  bahwa efek, animasi dan widget - widget serupa akan menambah beban loading blog sobat, jadi mohon di perhitungkan sebelum sobat memasang efek ini. Efek yang akan saya posting kali ini, akan saya bagi 2 yaitu efek ringan ( loading ringan ) dan efek menegah hingga berat. ( kayak tinju aja.. ) .

Sobat yang tertarik memasangnya silahkan ikuti tutorial memasang efek - efek pada blog berikut.

A. Efek Ringan
Mungkin Ini adalah efek yang biasa sobat lihat saat sobat blogwalking.

1. Efek salju berjatuhan


<script src='http://tateluproject.googlecode.com/files/snow.js' type='text/javascript'></script>

2. Efek hati bertaburan
<script src='http://tateluproject.googlecode.com/files/lovingheart.js' type='text/javascript'></script>

3. Efek bintang bertaburan
<script src='http://tateluproject.googlecode.com/files/bintang.js' type='text/javascript'></script>

4. Efek kembang api
<script src='http://tateluproject.googlecode.com/files/kembangapi.js' type='text/javascript'></script>

5. Efek Gelembung
<script src='http://tateluproject.googlecode.com/files/efek-gelembung.js' type='text/javascript'></script>

5. Efek Kupu - Kupu Terbang
<script language="JavaScript1.2" src="http://imtikhan.googlecode.com/files/Kupu-kupu1.js"></script>

Cara pemasangan :
  1. Klik rancangan --> Edit html
  2. Letakkan script efek di atas kode </body>
  3. Klik Save

6 Juni 2012

MySQL INSERT, UPDATE, DELETE and SELECT with PHP

This tutorial will show you how to INSERT, UPDATE, DELETE and SELECT rows from a MySQL table using PHP.
First off, this tutorial assumes you have a database connection above all the SQL statements. The database connection should look something like this:
php:
<?php
  
//these variables are used for database connection
  
$host "localhost";
  
$user "db_user";
  
$pass "db_pass";
  
$database "db_name";

  
//connect to the database.
  
$db mysql_connect($host$user$pass);
  
mysql_select_db ($database);  ?>


INSERT Statement:
The first statement we will look at is the INSERT statement. This is how you actually put information intno a table in the database. In this example, we will pretend like we're adding a person to a "people" table in the database. It will look like this: