Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
P. 1
Modul Pemrograman Web Dengan PHP MySQL

Modul Pemrograman Web Dengan PHP MySQL

Ratings: (0)|Views: 296 |Likes:
Published by Agustinus Silalahi

More info:

Published by: Agustinus Silalahi on Jan 30, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/27/2014

pdf

text

original

 
 1
Daftar IsiHalamanKata Pengantar.................................................................................................................................iDaftar isi..........................................................................................................................................iiBab I PHP1.1
 
Pendahuluan.................................................................................................................11.2
 
Sejarah singkat.............................................................................................................11.3
 
Konsep Kerja PHP.......................................................................................................21.4
 
Script PHP...................................................................................................................21.4.1
 
Embedded dan Non Embedded Script.....................................................21.4.1.a Embedded Script..........................................................................21.4.1.b Non Embedded Script..................................................................31.5
 
Komentar.....................................................................................................................31.6
 
Mencetak Data............................................................................................................4Bab II Identifier, Variabel, Tipe Data, dan Operator2.1 Identifier......................................................................................................................42.2 Variabel.......................................................................................................................42.3 Tipe data......................................................................................................................42.3.1 Integer (bilangan bulat) ..............................................................................42.3.2 Floating point (bilangan pecahan)..............................................................52.3.3 String..........................................................................................................52.3.4 Array..........................................................................................................5
 
2.3.5 Tipe Data Objek.........................................................................................52.4 Operator......................................................................................................................6
 
 2
2.4.1 Operator Aritmatika.........................................................................................62.4.2 Operator String................................................................................................72.4.3 Operator Increment/Decrement.......................................................................72.4.4 Operator Perbandingan)..................................................................................72.4.5 Operator Logika..............................................................................................7 2.4.6 Operator Penugasan Assignme.......................................................................8Bab III Pengolahan Data dari Form3.1 Pendahuluan...............................................................................................................93.2 Get..............................................................................................................................93.3 Post...........................................................................................................................10BAB IV Struktur Kontrol dan Fungsi4.1 Struktur Kontrol.......................................................................................................114.2 Pernyataan Kondisional (If Statement)....................................................................114.2.1 IF..............................................................................................................114.2.2
IF…Else…
...............................................................................................124.2.3 IF..Elseif.. ...............................................................................................134.2.4 Nested IF (If Bersarang)..........................................................................154.2.5 Switch Case.............................................................................................164.3 Perulangan...............................................................................................................174.3.1 For...........................................................................................................174.3.2 Foreach...................................................................................................184.3.3 While......................................................................................................19
4.3.4 Do … while
............................................................................................204.4 Fungsi.....................................................................................................................21
 
 3
4.4.1 Fungsi String..........................................................................................214.4.2Fungsi Tanggal (Date)............................................................................22Bab V Session5.1 Pendahuluan..........................................................................................................245.2 Memulai session....................................................................................................245.3 Mendaftarkan Variabel Session.............................................................................245.4 Session_is_registered()..........................................................................................255.5 Session destroy()...................................................................................................25Bab VI Pemrograman Database6.1 Pendahuluan..........................................................................................................276.2.1. DDL (
 Data Definition Language
)........................................................276.2.2 DML (
 Data Manipulation Language
)..................................................276.3 PHP
 – 
MySQL.......................................................................................................286.3.1 Mysql_connect()....................................................................................286.3.2 Mysql_select_db().................................................................................286.3.3 Mysql_query().......................................................................................296.3.4 Mysql_fetch_array()..............................................................................296.4 Aplikasi Portal Berita............................................................................................306.4.1. Rancangan database.............................................................................306.4.2. Struktur Direktori dan File...................................................................316.4.3. Tampilan Aplikasi................................................................................316.5. Skrip-skrip PHP..................................................................................................326.5.1 Skrip PHP Untuk Pengunjung Biasa.....................................................326.5.2 Skrip PHP Untuk Admin.......................................................................37

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->