Tampilkan postingan dengan label Programing. Tampilkan semua postingan
Tampilkan postingan dengan label Programing. Tampilkan semua postingan

1 Jan 2012

How to make a "SEARCH" for your website

Cara membuat "SEARCH" pada sebuah website, disini saya bagi dua, pertama yaitu mengggunakan htm sebagai layout awal, ini dikarenakan saya tidak memasukanya pada sebuah website, ini sejenis stand alone. ok pertama buat databasenya.


mysql> create database toko;
Query OK, 1 row affected (0.03 sec)
mysql> use toko;
Database changed
mysql> create table buku (
    -> kodebuku varchar(10) not null primary key,
    -> judulbuku varchar(50) not null,
    -> pengarang varchar(30) not null,
    -> harga float default 0,
    -> sinopsis text);
Query OK, 0 rows affected (0.08 sec)
mysql> insert into buku (kodebuku,judulbuku,pengarang,harga,sinopsis)
    -> values
    -> ("001","WEB & PHP","Abdul Kadir","32000","Mengajarkan bagaimana pembuatan web dengan php dengan cara yang mudah"),
    -> ("002","BASIS DATA","Adi Nugroho","75000","Berisi dasar - dasar konsep dan perancangan basisi data berikut desain dan implementasinya"),
    -> ("003","VISUAL FOXPRO 9","Tjendry Herianto","55000","Salah satu bahasa pemrogrman visual untuk basis data yang sangat mudah digunakan");
Query OK, 3 rows affected (0.11 sec)
Records: 3  Duplicates: 0  Warnings: 0

How to make an user interface for data input in java


Before you copy this script, make sure that you make the UI first, and named is as just as like this example,, so it will work properly, thanks......
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
/**
 *
 * @author andy3je
 */

28 Des 2011

How to make an user interface for database connection in java

package m1;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

26 Des 2011

My first try to make an application "Java Programing" (program java)


package moddesktop3;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/**
 *
 * @author trj3je
 */
public class FUpdateData extends javax.swing.JFrame {
Connection koneksi;
Statement perintah;
ResultSet hasil;
    /** Creates new form FUpdateData */
    public FUpdateData() {
        initComponents();
    }

24 Des 2011

How to make an ecrypted login page (basic) "cara membuat login yang ter enkripsi"

Okay, today i'll show you some of my task, where i have to make a "login", okay, just see this i hope you can understand what i'm talking about :D
first : make a page for the form, named it with "index.html"
index.html functions to enter the username and password, which will be stored in the variable $ username for the username and passworrd for input will be stored in the variable $ password, and here is the script for "index.html"

<html>
<head>
<title>Encryption in PHP</title>
</head>
<body>

Object, it's all about the concept of programing with an object

What Exactly Is a Class?
In short, a class is a blueprint for an object.When you instantiate an object, you use a class as the basis for how the object is built. Class is decipherable as group of objects that have atributes, operation, and relation.
Remember that each object has its own attributes (analogous to fields) and behaviors (analogous to functions). A class defines the attributes and behaviors that all objects created with this class will possess. Because objects are created from classes, it follows that classes must define the basic building blocks of objects (attributes, behavior, and messages). In short, you must design a class before you can create an object.

Attributes
Each class must define the attributes that will store the state of each object instantiated from that class.

Methods
Methods implement the required behavior of a class. Every object instantiated from this class has the methods as defined by the class. Methods may implement behaviors that are called from other objects (messages) or provide the fundamental, internal behavior of the class. Internal behaviors are private methods that are not accessible by other objects.

How to make a shoutbox for your website

Just for your information, nowadays every website has a shoutbox, it's a facilities that the website give to the visitor so the visitor can talk each other, i've done this when i build my website for a task that my lecturer give to me, so here the script :
<html>
<head>
<title>Shoutbox</title>
</head>
<body>