Sabtu, 30 Agustus 2014



Assalamualaikum warahmatullahi wabarakatuh
Alhamdulillah, segala puji bagi Allah Tuhan Semesta alam yang senantiasa memberi banyak kenikmatan. Sholawat serta salam kita tujukan pada junjungan kita Nabi Muhammad SAW yang sangat kita harapkan syafaatnya di hari akhir nanti.
Surat Al Fatihah termasuk dalam surat makkiyah yaitu surat yang diturunkan di Mekkah. Surat Al Fatihah merupakan surat pertama dalam Al Qur an atau disebut sebagai surat pembuka. Surat Al fatihah Terdiri dari atas 7 ayat.
Hafal terhadap surat Al Fatihah merupakan kewajiban seorang setiap orang yang mengerjakan ibadah sholat, baik ketika sholat sendiri, atau sebagai makmum ataupun sebagai Imam harus mengerti dan paham Surat Alfatihah. Karena jika tidak membaca surat Al Fatihah maka sholatnya tidak sah.
Nabi kita, sang suri tauladan kita yaitu Muhammad Shallallahu ‘alaihi wa sallam bersabda,
مَنْ صَلَّى صَلاَةً لَمْ يَقْرَأْ فِيْهَا بِأُمِّ الْقُرْآنِ فَهِيَ خِدَاجٌ ثَلاَثًا غَيْرُ تَمَامٍ فَقِيْلَ لِأَبِيْ هُرَيْرَةَ: إِنَّا نَكُوْنُ وَرَاءَ اْلإِمَامِ فَقَالَ: اِقْرَأْ بِهَا فِيْ نَفْسِكَ فَإِنِّيْ سَمِعْتُ رَسُوْلَ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ يَقُوْلُ: قَالَ اللهُ تَعَالَى: قَسَّمْتُ الصَّلاَةَ بَيْنِيْ وَبَيْنَ عَبْدِيْ نِصْفَيْنِ وَلِعَبْدِيْ مَا سَأَلَ
Artinya :
“Barangsiapa yang melakukan sholat, sedang ia tak membaca Ummul Qur’an (Al-Fatihah) di dalamnya, maka sholatnya kurang (3X), tidak sempurna”. Abu Hurairah ditanya, “Bagaimana kalau kami di belakang imam”. Beliau berkata, “Bacalah pada dirimu (yakni, secara sirr/pelan), karena sungguh aku telah mendengar Rasulullah -Shallallahu ‘alaihi wa sallam- bersabda, “Allah -Ta’ala- berfirman, “Aku telah membagi Sholat (yakni, Al-Fatihah) antara Aku dengan hamba-Ku setengah, dan hamba-Ku akan mendapatkan sesuatu yang ia minta”. [HR. Muslim (395), Abu Dawud (821), At-Tirmidziy (2953), An-Nasa’iy (909), dan Ibnu Majah (838)]

Terjemahan Surat Al Fatihah Lengkap dengan Maknanya

Bagi kamu yang ingin memahami surat Al Fatihah lebih dalam, di bawah ini kami sajikan surat Al Fatihah dalam bahasa arab dan juga latin lengkap dengan terjemahan dan penjelasan makna lebih dalam. Semoga Alloh SWT mengizinkan kita memahami ayat-ayat suci di bawah ini :
1.    Al-Fatihah Ayat 1
Latin : Bismillah Hirrahman Nirrahim
Artinya : Dengan menyebut nama Allah Yang Maha Pemurah lagi Maha Penyayang.
Maksud dari ayat pertama ini adalah : saya memulai membaca al-Fatihah ini dengan menyebut nama Allah. Setiap pekerjaan yang baik, hendaknya dimulai dengan menyebut asma Allah, mulai dari pekerjaan ringan seperti makan, minum, bepergian, belajar, dan sebagainya. Allah adalah nama zat yang Maha Suci, yang berhak disembah dengan sebenar-benarnya, yang tidak membutuhkan makhluk-Nya, tapi makhluk yang membutuhkan-Nya. Ar-Rahmaan (Maha Pemurah): salah satu nama Allah yang memberi pengertian bahwa Allah melimpahkan karunia-Nya kepada makhluk-Nya, sedang ar-Rahiim (Maha Penyayang) memberi pengertian bahwa Allah senantiasa bersifat rahmah yang menyebabkan Dia selalu melimpahkan rahmat-Nya kepada makhluk-Nya.
2.   Al-Fatihah Ayat 2
Latin : alhamdu lillaahi rabbil aalamiina
artinya : Segala puji {2} bagi Allah, Tuhan semesta alam. {3}
Maksud ayat kedua surat Al Fatihah adalah : {2} Alhamdu (segala puji). Memuji orang adalah karena perbuatannya yang baik yang dikerjakannya dengan kemauan sendiri. Maka memuji Allah berarti: menyanjung-Nya karena perbuatan-Nya yang baik. Lain halnya dengan syukur yang berarti: mengakui keutamaan seseorang terhadap ni’mat yang diberikannya. Kita menghadapkan segala puji bagi Allah ialah karena Allah sumber dari segala kebaikan yang patut dipuji.
{3} Rabb (Tuhan) berarti: Tuhan yang ditaati Yang Memiliki, Mendidik dan Memelihara. Lafadz “rabb” tidak dapat dipakai selain untuk Tuhan, kecuali kalau ada sambungannya, seperti rabbul bait (tuan rumah). ‘Alamiin (semesta alam): semua yang diciptakan Tuhan yang terdiri dari berbagai jenis dan macam, seperti: alam manusia,alam hewan, alam tumbuh-tumbuhan, benda-benda mati dan sebagainya. Allah pencipta semua alam-alam itu.
3.  Al-Fatihah Ayat 3
Latin : arrahmaanirrahiim
Artinya : Maha Pemurah lagi Maha Penyayang.
Untuk ayat ketiga dalam surat Al FAtihah ini maksudnya hampir sama dengan ayat pertama,  Ar-Rahmaan (Maha Pemurah): salah satu nama Allah yang memberi pengertian bahwa Allah melimpahkan karunia-Nya kepada makhluk-Nya, sedang ar-Rahiim (Maha Penyayang) memberi pengertian bahwa Allah senantiasa bersifat rahmah yang menyebabkan Dia selalu melimpahkan rahmat-Nya kepada makhluk-Nya.
4.  Al-Fatihah Ayat 4
latin : maaliki yawmiddiin
Artinya : Yang menguasai {4} di Hari Pembalasan {5}
{4 }Maalik (Yang Menguasai) dengan memanjangkan “mim”, yang berarti: pemilik. Dapat pula dibaca dengan (dengan memendekkan mim), artinya: Raja.
{5} Yaumiddin (hari pembalasan): hari yang di waktu itu masing-masing manusia menerima pembalasan amalannya yang baik maupun yang buruk. Yaumiddin disebut juga yaumulqiyaamah, yaumulhisaab, yaumuljazaa’ dan sebagainya.
5.  Al-Fatihah Ayat 5
latin : iyyaaka na’budu wa-iyyaaka nasta’iin
Artinya : Hanya Engkaulah yang kami sembah {6}, dan hanya kepada Engkaulah kami meminta pertolongan. {7}
{6} Na’budu diambil dari kata ‘ibaadat: kepatuhan dan ketundukkan yang ditimbulkan oleh perasaan terhadap kebesaran Allah, sebagai Tuhan yang disembah, karena berkeyakinan bahwa Allah mempunyai kekuasaan yang mutlak terhadapnya.
{7} Nasta’iin (minta pertolongan), terambil dari kata isti’aanah: mengharapkan bantuan untuk dapat menyelesaikan suatu pekerjaan yang tidak sanggup dikerjakan dengan tenaga sendiri.
6.  Al-Fatihah Ayat 6
Latin : ihdinaash shiraathaal mustaqiim
Artinya : Tunjukilah [8] kami jalan yang lurus,
[8] Ihdina (tunjukilah kami), dari kata “hidayaat”: memberi petunjuk ke suatu jalan yang benar. Yang dimaksud dengan ayat ini bukan sekedar memberi hidayah saja, tetapi juga memberi taufik.
7.  Al-Fatihah Ayat 7
Latin : shiraathalladziina an’amta ‘alayhim ghayril maghdhuubi ‘alayhim walaadhdhaalliin
Artinya : (yaitu) Jalan orang-orang yang telah Engkau beri ni’mat kepada mereka; bukan (jalan) mereka yang dimurkai dan bukan (pula jalan) mereka yang sesat. {9}
{9} Yang dimaksud dengan “mereka yang dimurkai” dan “mereka yang sesat” ialah semua golongan yang menyimpang dari ajaran Islam.
Semoga artikel islami yang berisi mengenai terjemahan surat Al Fatihah beserta maksudnya di atas bisa bermanfaat bagi kita semua.
Semoga Allah senantiasa memberi kita ilmu-ilmu yang bermanfaat bagi dunia dan Akhira, dan melindungi kita dari ilmu-ilmu yang tidak bermenfaat dan menyesatkan. Aamiin.
Wabillahi taufik wal hidayah, wassalamualaikum warahmatullahi wabarakatuh
referensi : alquran-indonesia.com
Orang Kaya Mati
Orang Miskin Mati
Raja-raja Mati
Rakyat Biasa Mati

Semua Pergi Menghadap ILahi
Wanita Baik Untuk Lelaki Baik Merupakan ketentuan Allah adalah kesepadanan dalam berpasangan. Buruk Untuk Buruk, Baik Untuk Baik.

Allah Subhanahu wa Ta'ala berfirman, الْخَبِيثَاتُ لِلْخَبِيثِينَ وَالْخَبِيثُونَ لِلْخَبِيثَاتِ وَالطَّيِّبَاتُ لِلطَّيِّبِينَ وَالطَّيِّبُونَ لِلطَّيِّبَاتِ

"Wanita-wanita yang keji untuk laki-laki yang keji, dan laki-laki yang keji untuk wanita-wanita yang keji (pula) Sedangkan wanita-wanita yang baik untuk laki-laki yang baik, dan laki-laki yang baik untuk wanita-wanita yang baik (pula)..." (QS An-Nur: 26)

Serupa dengan ayat ini adalah Surat An-Nur ayat 3 tentang lelaki dan perempuan pezina.
Sebagian ulama menjelaskan, "Lelaki yang buruk (akhlak dan agama), akan berpasangan dgn wanita yang buruk pula. Demikian pula sebaliknya.

Ayat ini juga sebagai penegas kesucian Ummul Mukminin 'Aisyah radhiyallahu 'anha atas tuduhan yang menimpa beliau.

Rasulullah shallallahu'alaihi wasallam adalah manusia terbaik, maka istri yang mendampingi beliau adalah wanita yang baik (akhlak dan agama) pula. (Lihat Tafsir Ibnu Katsir dan lainnya)

Anda ingin mendapat pasangan yang shalih/shalihah...?
Jadikan dahulu diri kita layak, dengan berhias amal kebajikan dan akhlak mulia.
Nafāits Tsamarāt: Tidak Setiap Orang Yang Shalat Itu Shalat
Tidak setiap orang yang shalat itu shalat. Sesungguhnya Aku (Allah) hanya menerima shalat dari orang yang tawaduk (rendah hati) karena keagungann-Ku; tidak bertindak zalim terhadap para makhluk-Ku; tidak terus-menerus bermaksiat kepada-Ku; menhabiskan siang harinya dalam mengingat-Ku; dan kasih sayang terhadap orang miskin, ibnu sabil, para janda, dan orang yang tertimpa musibah. Aku jadikan untuknya dalam kebodohan kesabaran, dalam kegelapan cahaya, dimana cahayanya itu seperti cahaya matahari yang Aku lindungi dengan kemuliaan-Ku, dan Aku jadikan penjaganya adalah para malaikat-Ku. Orang yang sepertinya ini di tengah-tengah makhluk-Ku adalah seperti taman di tengah-tengah surga.” (HR. al-Bazzar).

Diriwayatkan bahwa Imam Ali ra apabila datang waktu shalat, maka bergetar dan wajahnya pun berubah. Lalu beliau ditanya: “Ada apa denganmu, wahai Amirul Mukminin?” Beliau menjawab: “Telah datang waktu amanah yang Allah tawarkan kepada langit, bumi dan gunung, namun semuanya menolak untuk memikul dan mengembannya.”

Allah SWT telah mewahyukan kepada beberapa Nabi: “Apabila telah masuk waktu shalat, maka tergeraklah dari hatimu khusyuk, dari badanmu tunduk, dan dari kedua matamu air mata, kerena takut kepada-Ku.”

Sumber: hizb-ut-tahrir.info, 28/8/2014
Foto: Nafāits Tsamarāt: Tidak Setiap Orang Yang Shalat Itu Shalat
Tidak setiap orang yang shalat itu shalat. Sesungguhnya Aku (Allah) hanya menerima shalat dari orang yang tawaduk (rendah hati) karena keagungann-Ku; tidak bertindak zalim terhadap para makhluk-Ku; tidak terus-menerus bermaksiat kepada-Ku; menhabiskan siang harinya dalam mengingat-Ku; dan kasih sayang terhadap orang miskin, ibnu sabil, para janda, dan orang yang tertimpa musibah. Aku jadikan untuknya dalam kebodohan kesabaran, dalam kegelapan cahaya, dimana cahayanya itu seperti cahaya matahari yang Aku lindungi dengan kemuliaan-Ku, dan Aku jadikan penjaganya adalah para malaikat-Ku. Orang yang sepertinya ini di tengah-tengah makhluk-Ku adalah seperti taman di tengah-tengah surga.” (HR. al-Bazzar).

Diriwayatkan bahwa Imam Ali ra apabila datang waktu shalat, maka bergetar dan wajahnya pun berubah. Lalu beliau ditanya: “Ada apa denganmu, wahai Amirul Mukminin?” Beliau menjawab: “Telah datang waktu amanah yang Allah tawarkan kepada langit, bumi dan gunung, namun semuanya menolak untuk memikul dan mengembannya.”

Allah SWT telah mewahyukan kepada beberapa Nabi: “Apabila telah masuk waktu shalat, maka tergeraklah dari hatimu khusyuk, dari badanmu tunduk, dan dari kedua matamu air mata, kerena takut kepada-Ku.”

Sumber: hizb-ut-tahrir.info, 28/8/2014

Senin, 08 Oktober 2012

Maher Zain - Freedom




Gathered here with my family
My neighbours and my friends 
Standing firm together
Against oppression holding hands 
It doesn't matter where you're from
Or if you're young, old, woman or man 
We're here for the same reason
We want to take back our land

Chorus:
O God, thank You
For giving us the strength to hold on 
And now we're here together
Calling You for freedom, freedom
We know You can hear our call, oh
We're calling for freedom, fighting for freedom 
We know You won't let us fall, oh
We know You're here with us 

No more being prisoners in our homes
No more being afraid to talk
Our dream is just to be free, just to be free
Now when we've taken our first step
Towards a life of complete freedom
We can see our dream getting closer and closer
We're almost there 

CHORUS

I can feel the pride in the air 
And it makes me strong to see everyone
Standing together holding hands in unity 
Shouting out loud demanding their right for freedom
This is it, and we're not backing off!
O God we know You hear our call

CHORUS

Freedom, freedom, freedom, ooh

Lyrics, Melody & Arrangement: Maher Zain


Minggu, 07 Oktober 2012




Ini dia Lagu2 Naruto dapet copas dari orang hehehe..

NARUTO(TV)
Opening Theme:
#01: "Rocks" by Hound Dog
#02: "Haruka Kanata (遥か彼方)" by Asian Kung-Fu Generation
#03: "Kanashimi wo Yasashisani" by little by little
#04: "GO!!!" by FLOW (eps 78-103)
#05: "Seishun Kyosokyoku (青春狂騒曲)" by Sambomaster (eps
#06: "No Boy, No Cry (ノーボーイ・ノークライ)" by Stance Punks
#07: "Namikaze Satellite (波風サテライト)" by Snowkel
#08: "Re:member" by FLOW
#09: "YURA YURA" by Hearts Grow
E01: "Rise" by Jeremy Sweet and Ian Nickus
E02: "Haruka Kanata (遥か彼方)" by Asian Kung-Fu Generation
E03: "GO!!!" by FLOW
E04: "Seishun Kyosokyoku" by Sambomaster
E05: "No Boy, No Cry (ノーボーイ・ノークライ)" by Stance Punks
E06: "Namikaze Satellite (波風サテライト)" by Snowkel
E07: "Re:member" by FLOW
E08: "YURA YURA" by Hearts Grow
Ending Theme:
#01: "Wind" by Akeboshi (eps 1-25)
#02: "Harmonia (ハルモニア)" by Rythem (eps 26-51)
#03: "Viva Rock ~Japanese Side~" by Orange Range
#04: "ALIVE" by Raiko
#05: "Ima made Nando mo (今まで何度も)" by the Mass Missile
#06: "Ryusei (流星)" by Tia
#07: "Mountain A Go Go Too" by Captain Stridum
#08: "Hajimete Kimi to Shabetta" by GagagaSP
#09: "Nakushita Kotoba (失くした言葉)" by No Regret Life
#10: "スピード (Speed)" by Analog Fish
#11: "Soba ni Iru Kara (そばにいるから)" by Amadori
#12: "Parade (パレード)" by CHABA
#13: "Yellow Moon" by Akeboshi
#14: "Pinocchio" by Ore Ska Band
#15: "Scenario" by SABOTEN

NARUTO SHIPPUDEN(TV)
Opening Theme:
#1: "Hero's Come Back!!" by nobodyknows+
#2: "distance" by LONG SHOT PARTY
#3: "BLUE BIRD" by Ikimono-Gakari
#4: "CLOSER" by Inoue Joe
#5: "Hotaru no Hikari" by Ikimono-Gakari
#6: "SUMMER FREAK" by FLOW
#7: "Toumei Datta Sekai" by Motohiro Hata
#8: "Diver" by NICO TOUCHES THE WALLS
#9: "Lovers" by 7!! Seven Oops
Ending Theme:
#01: "Nagare Boshi ~Shooting Star~" by HOME MADE Kazoku
#02: "Michi ~ to you all" by aluto
#03: "KIMI MONOGATARI" by little by little
#04: "Mezamero! Yasei" by MATCHY with QUESTION?
#05: "Sunao na Niji" by surface
#06: "Broken Youth" by NICO TOUCHES THE WALLS
#07: "Long Kiss Good Bye" by HALCALI
#08: "BACCHIKOI!!!" by DEV PARADE
#09: "Shinkokyuu" by SUPER BEAVER
#10: "My Answer" by Seamo
#11: "Omae Datanta (It Was You)" by Kishidan
#12: "For You" by Azu
#13: "Jitensha (Bicyecle)" by Oreskaband
#14: "Utakata Hanabi" by Supercell
#15: "U Can Do It" by Domino
#16: "Mayonaka no Orchestra" by Aqua Timez
#17: "Freedom" by Home Made Kazoku
#18: "Yokubou O Sakebe!!!" by OKAMOTO's

Senin, 01 Oktober 2012

One Direction - What Makes You Beautiful




"What Makes You Beautiful"

[Verse 1]
[Liam]
You're insecure,
Don't know what for,
You're turning heads when you walk through the door,
Don't need make-up,
To cover up,
Being the way that you are is enough,

[Bridge]
[Harry]
Everyone else in the room can see it,
Everyone else but you,

[Chorus]
[All]
Baby you light up my world like nobody else,
The way that you flip your hair gets me overwhelmed,
But when you smile at the ground it ain't hard to tell,
You don't know,
Oh oh,
You don't know you're beautiful,
If only you saw what I can see,
You'll understand why I want you so desperately,
Right now I'm looking at you and I can't believe,
You don't know,
Oh oh,
You don't know you're beautiful,
Oh oh,
That's what makes you beautiful

[Verse 2]
[Zayn]
So c-come on,
You got it wrong,
To prove I'm right,
I put it in a song,
I don't know why,
You're being shy,
And turn away when I look into your eye eye eyes,

[Bridge]
[Harry]
Everyone else in the room can see it,
Everyone else but you,

[Chorus]
[All]
Baby you light up my world like nobody else,
The way that you flip your hair gets me overwhelmed,
But when you smile at the ground it ain't hard to tell,
You don't know,
Oh oh,
You don't know you're beautiful,
If only you saw what I can see,
You'll understand why I want you so desperately,
Right now I'm looking at you and I can't believe,
You don't know,
Oh oh,
You don't know you're beautiful,
Oh oh,

[Harry]
That's what makes you beautiful

Na Na Na Na Na Na Na Na Na Na
Na Na Na Na Na Na [x2]

[Middle 8]
[Harry]
Baby you light up my world like nobody else,
The way that you flip your hair gets me overwhelmed,
But when you smile at the ground it ain't hard to tell,

[All]
You don't know,
Oh oh,
You don't know you're beautiful,

[Chorus]
[All]
Baby you light up my world like nobody else,
The way that you flip your hair gets me overwhelmed,
But when you smile at the ground it ain't hard to tell,
You don't know,
Oh oh,
You don't know you're beautiful ([Zayn:] Oh),
If only you saw what I can see,
You'll understand why I want you so desperately ([Harry:] desperately),
Right now I'm looking at you and I can't believe,
You don't know,
Oh oh,
You don't know you're beautiful,
Oh oh,
You don't know you're beautiful,
Oh oh,

[Harry]
That's what makes you beautiful


Maher Zain - Insya Allah

Everytime you feel like you cannot go on
You feel so lost
That your so alone
All you is see is night
And darkness all around
You feel so helpless
You can`t see which way to go
Don`t despair and never loose hope
Cause Allah is always by your side

Insya Allah3x
Insya Allah you`ll find your way

Everytime you can make one more mistake
You feel you can`t repent
And that its way too late
Your`re so confused,wrong decisions you have made
Haunt your mind and your heart is full of shame


Don`t despair and never loose hope
Cause Allah is always by your side
Insya Allah3x
Insya Allah you`ll find your way
Insya Allah3x
Insya Allah you`ll find your way

Turn to Allah
He`s never far away
Put your trust in Him
Raise your hands and pray
OOO Ya Allah
Guide my steps don`t let me go astray
You`re the only one that showed me the way,
Showed me the way 2x
Insya Allah3x
Insya Allah we`ll find the way




Irfan Makki feat. Maher Zain - I Believe



*Irfan Makki*
When you’re searching for the light
And you see no hope in sight
Be sure and have no doubt
He’s always close to you

He’s the one who knows you best
He knows what’s in your heart
You’ll find your peace at last
If you just have faith in Him

You’re always in my heart and mind
Your name is mentioned every day
I’ll follow you no matter what
My biggest wish is to see you one day

Chorus:
I believe
I believe
Do you believe, oh do you believe?

*Maher Zain*
Coz I believe
In a man who used to be
So full of love and harmony
He fought for peace and liberty
And never would he hurt anything
He was a mercy for mankind
A teacher till the end of time

No creature could be compared to him
So full of light and blessings

You’re always in my heart and mind
Your name is mentioned every day
I’ll follow you no matter what
If God wills we’ll meet one day

Chorus

If you lose your way
Believe in a better day
Trials will come
But surely they will fade away
If you just believe
What is plain to see
Just open your heart
And let His love flow through

I believe I believe, I believe I believe
And now I feel my heart is at peace

Chorus

I believe I believe, I believe I believe

Maher Zain - I Love U So



I pray to God
My heart, soul, and body
Every single day of my life
With every breath I solemnly promise
To try to live my life for you

O Allah, You did revive my soul
And shone Your light into my heart
So pleasing You is now my only goal
Oh I love You so
I love You so (I love You so)

[Chorus:]
Now I know how it’s like
To have a precious love in my life
Now I know how it feels
To finally be at peace inside
I wish that everybody knew
How amazing it feels to love You
I wish that everyone could see
How Your love has set me free
Set me free and made me strong

O Allah, I’m forever grateful to You
Whatever I say could never be enough
You gave me strength to overcome my uncertainties
And stand firm against all the odds

You are the one who did revive my soul
You shone Your light into my heart
So pleasing You is now my only goal
Oh I love You so
I love You so (I love You so)

[Chorus]

My love, my life, my days, my nights, my wealth, my prayers – all for You [x2]
And I swear that I will never put anyone or anything before You
My love, my life, my days, my nights, my wealth, my prayers – all for You

[Chorus]


Minggu, 30 September 2012

Maher Zain - So Soon lyric




Every time I close my eyes I see you in front of me
I still can hear your voice calling out my name 
And I remember all the stories you told me
I miss the time you were around (x2)
But I'm so grateful for every moment I spent with you
'Cause I know life won't last forever

Chorus:
You went so soon, so soon
You left so soon, so soon
I have to move on 'cause I know it's been too long
I've got to stop the tears, keep my faith and be strong
I'll try to take it all, even though it’s so hard
I see you in my dreams but when I wake up you are gone
Gone so soon

Night and day, I still feel you are close to me
And I remember you in every prayer that I make 
Every single day may you be shaded by His mercy
But life is not the same, and it will never be the same
But I'm so thankful for every memory I shared with you
'Cause I know this life is not forever

CHORUS

There were days when I had no strength to go on
I felt so weak and I just couldn't help asking: “Why?”
But I got through all the pain when I truly accepted
That to God we all belong, and to Him we'll return, ooh

CHORUS



Maher Zain - Open Your Eyes Lyric

Let’s learn English through English songs

OPEN YOUR EYES BY MAHER ZAIN

Look around yourselves
Can't you see this wonder
Spread in front of you
The clouds are floating by
The skies are clear and blue
Planets in the orbits
The moon and the sun
Such perfect harmony

Let's start question in ourselves
Isn't this proof enough for us
Or are we so blind
To push it all aside..
No..

We just have to
Open our eyes, our hearts, and minds
If we just look bright to see the signs
We can't keep hiding from the truth
Let it take us by surprise
Take us in the best way
(Allah..)
Guide us every single day..
(Allah..)
Keep us close to You
Until the end of time..

Look inside yourselves
Such a perfect order
Hiding in yourselves
Running in your veins
What about anger love and pain
And all the things you're feeling
Can you touch them with your hand?
So are they really there?

Lets start question in ourselves
Isn't this proof enough for us?
Or are we so blind
To push it all aside..?
No..

We just have to
Open our eyes, our hearts, and minds
If we just look bright to see the signs
We can't keep hiding from the truth
Let it take us by surprise
Take us in the best way
(Allah..)
Guide us every single day..
(Allah..)
Keep us close to You
Until the end of time..

When a baby's born
So helpless and weak
And you're watching him growing..
So why deny
Whats in front of your eyes
The biggest miracle of life..

We just have to
Open our eyes, our hearts, and minds
If we just look quiet we'll see the signs
We can't keep hiding from the truth
Let it take us by surprise
Take us in the best way
(Allah..)
Guide us every single day..
(Allah..)
Keep us close to You
Until the end of time..

Open your eyes and hearts and minds
If you just look bright to see the signs
We can't keep hiding from the truth
Let it take us by surprise
Take us in the best way
(Allah..)
Guide us every single day..
(Allah..)
Keep us close to You
Until the end of time..

Allah..
You created everything
We belong to You
Ya Robb we raise our hands
Forever we thank You . .
Alhamdulillah

Jumat, 23 Desember 2011

Goes21

Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21 Goes21 goes21 GOES21 GoeS21 Thegoes21

Sabtu, 15 Januari 2011

Sabtu, 02 Oktober 2010

PHP & MySQL: Tutorial Dasar

Pada tutorial kali ini, kita akan mencoba melakukan operasi - operasi dasar pada PHP MySQL.
1. Membuat koneksi
$hostmysql = “localhost”;
$username = “mysqlusername”;
$password = “mysqlpassword”;
$database = “namadatabase”;

$conn = mysql_connect(”$hostmysql”,”$username”,”$password”);
if (!$conn) die (”Koneksi gagal”);
mysql_select_db($database,$conn) or die (”Database tidak ditemukan”); >

Penjelasan Script:
a. mysql_connect
digunakan untuk membuat koneksi dari PHP ke server MySQL. Data mengenai hostname, mysql username, dan password yang digunakan telah diwakilkan oleh variabel $hostmysql, $username, $password. Penulisannya akan sama dengan:
mysql_connect(”localhost”,”username”,”password”);
b. mysql_select_db
untuk memilih database yang akan digunakan.
c. if (!$conn) die (”Koneksi gagal”);
jika koneksi gagal dibuat (!$conn), maka akan muncul pesan kesalahan

Setiap operasi PHP yang berhubungan dengan MySQL, akan membutuhkan sintaks diatas. agar lebih mudah, lebih baik disimpan terlebih dahulu dengan nama konfig.php. Jika sintaks tersebut dibutuhkan lagi, maka kita melakukan include terhadap file konfig.php tersebut.

2. Membuat tabel pada MySQL
include (”konfig.php”);
mysql_query(”CREATE TABLE user (
namadpnVARCHAR(20),
namablkg VARCHAR(20),
negara VARCHAR(20))”); ?>

Penjelasan script:
1. include (”konfig.php”);
perintah include digunakan untuk mengikut sertakan sebuah file (pada contoh diatas adalah file konfig.php).
2. mysql_query
format umum dari perintah ini adalah mysql_query(string dari query).
mysql_query akan sering dijumpai pada artikel kali ini.

3. Memasukkan data pada tabel
include (”konfig.php”);
$insert = “INSERT INTO users (namadpn,namablkg,negara)
VALUES (’Saya’,'Sendiri’,'Indonesia’)”;
mysql_query($insert) or die (”tidak dapat memasukkan data ke tabel”);?>

4 . Menampilkan data dari tabel
include (”konfig.php”);
$query = “SELECT * FROM user”;
$result = mysql_query($query);
$numrows = mysql_num_rows($result);
while($row = mysql_fetch_array($result)){
echo “Jumlah data: $numrows
”;
echo “Nama Depan: $row[namadpn]
”;
echo “Nama Belakang: $row[namablkg]
”;
echo “Negara: $row[negara]“;
} ?>

Penjelasan script:
1. mysql_num_rows
digunakan untuk menghitung jumlah baris yang didapat dari hasil eksekusi query (mysql_query).
2. while ( ) {
}
digunakan untuk melakukan perulangan selama data yang yang diinginkan masih ada. (dalam contoh diatas: akan menampilkan semua isi dari table).
3. mysql_fetch_array
menampilkan data dari tabel dalam bentuk array

Untuk penggunaan lainnya (hapus, update, dsb) yang berubah hanya string query-nya saja.

PHP

PHP: Hypertext Preprocessor adalah yang digunakan, luas tujuan umum bahasa script yang pada awalnya dirancang untuk pengembangan web untuk menghasilkan halaman web dinamis . For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. Untuk tujuan ini, kode PHP tertanam ke dalam HTML dokumen sumber dan ditafsirkan oleh web server dengan modul PHP prosesor, yang menghasilkan halaman web dokumen. As a general-purpose programming language, PHP code is processed by an interpreter application in command-line mode performing desired operating system operations and producing program output on its standard output channel. Sebagai tujuan bahasa pemrograman umum, kode PHP diproses oleh aplikasi penerjemah di baris perintah modus melakukan operasi sistem operasi yang diinginkan dan menghasilkan output program di channel output standar. It may also function as a graphical application. Hal ini juga dapat berfungsi sebagai aplikasi grafis. PHP is available as a processor for most modern web servers and as a standalone interpreter on most operating systems and computing platforms . PHP tersedia sebagai prosesor untuk sebagian besar web server modern dan sebagai penerjemah mandiri pada kebanyakan sistem operasi dan platform komputasi .

PHP was originally created by Rasmus Lerdorf in 1995 [ 1 ] [ 2 ] and has been in continuous development ever since. PHP pada awalnya diciptakan oleh Rasmus Lerdorf pada tahun 1995 [1] [2] dan telah dalam pembangunan berkelanjutan sejak itu. The main implementation of PHP is now produced by the PHP Group and serves as the de facto standard for PHP as there is no formal specification . [ 3 ] PHP is free software released under the PHP License . Implementasi utama dari PHP sekarang diproduksi oleh Grup PHP dan berfungsi sebagai standar de facto untuk PHP karena tidak ada spesifikasi formal . [3] PHP adalah perangkat lunak bebas yang dirilis di bawah Lisensi PHP .

Penggunaan

PHP is a general-purpose scripting language that is especially suited to server-side web development where PHP generally runs on a web server . PHP adalah bahasa scripting tujuan-umum yang sangat cocok untuk server-side web development PHP di mana umumnya berjalan pada web server . Any PHP code in a requested file is executed by the PHP runtime, usually to create dynamic web page content. Setiap kode PHP dalam file yang diminta dieksekusi oleh runtime PHP, biasanya untuk membuat halaman web dinamis konten. It can also be used for command-line scripting and client-side GUI applications. Hal ini juga dapat digunakan untuk command-line script dan client-side GUI aplikasi. PHP can be deployed on most web servers , many operating systems and platforms , and can be used with many relational database management systems . PHP dapat digunakan pada kebanyakan web server , banyak sistem operasi dan platform , dan dapat digunakan dengan banyak sistem manajemen database relasional . It is available free of charge, and the PHP Group provides the complete source code for users to build, customize and extend for their own use. [ 31 ] Ini tersedia gratis, dan Grup PHP menyediakan kode sumber lengkap bagi pengguna untuk membangun, menyesuaikan dan memperpanjang untuk mereka gunakan sendiri. [31]

PHP primarily acts as a filter , [ 32 ] taking input from a file or stream containing text and/or PHP instructions and outputs another stream of data; most commonly the output will be HTML. PHP terutama bertindak sebagai filter , [32] mengambil input dari sebuah file atau aliran teks yang berisi dan / atau PHP instruksi dan output lain aliran data; paling sering output akan HTML. Since PHP 4, the PHP parser compiles input to produce bytecode for processing by the Zend Engine , giving improved performance over its interpreter predecessor. [ 33 ] Sejak PHP 4, PHP parser compiles input untuk menghasilkan bytecode untuk diproses oleh Zend Engine , memberikan kinerja yang meningkat lebih dari perusahaan penerjemah pendahulunya. [33]

Originally designed to create dynamic web pages, PHP now focuses mainly on server-side scripting , [ 34 ] and it is similar to other server-side scripting languages that provide dynamic content from a web server to a client , such as Microsoft 's Active Server Pages , Sun Microsystems ' JavaServer Pages , [ 35 ] and mod_perl . Awalnya dirancang untuk membuat halaman web dinamis, PHP sekarang berfokus terutama pada server-side scripting , [34] dan ini mirip dengan lainnya server side-scripting bahasa yang menyediakan konten dinamis dari server web ke klien , seperti Microsoft 's Aktif Server Pages , Sun Microsystems ' JavaServer Pages , [35] dan mod_perl . PHP has also attracted the development of many frameworks that provide building blocks and a design structure to promote rapid application development (RAD). PHP juga telah menarik banyak pengembangan kerangka yang menyediakan blok bangunan dan struktur desain untuk mempromosikan pengembangan aplikasi cepat (RAD). Some of these include CakePHP , Symfony , CodeIgniter , and Zend Framework , offering features similar to other web application frameworks . Beberapa di antaranya adalah CakePHP , Symfony , CodeIgniter , dan Zend Framework , menawarkan fitur serupa dengan lain kerangka kerja aplikasi web .

The LAMP architecture has become popular in the web industry as a way of deploying web applications. The LAMP arsitektur telah menjadi populer di industri web sebagai cara untuk menyebarkan aplikasi web. PHP is commonly used as the P in this bundle alongside Linux , Apache and MySQL , although the P may also refer to Python or Perl or some combination of the three. WAMP packages ( Windows / Apache/ MySQL / PHP) and MAMP packages ( Macintosh / Apache / MySQL / PHP) are also available. PHP umumnya digunakan sebagai P dalam bundel bersama Linux , Apache dan MySQL , meskipun P juga dapat merujuk pada Python atau Perl atau beberapa kombinasi dari ketiganya. WAMP paket ( Windows / Apache / MySQL / PHP) dan MAMP paket ( Macintosh / Apache / MySQL / PHP) juga tersedia.

As of April 2007, over 20 million Internet domains had web services hosted on servers with PHP installed and mod_php was recorded as the most popular Apache HTTP Server module. [ 36 ] Significant websites are written in PHP including the user-facing portion of Facebook , [ 37 ] Wikipedia ( MediaWiki ), [ 38 ] Digg , [ 39 ] Joomla , eZ Publish , WordPress , [ 40 ] Drupal [ 41 ] and Moodle . [ 42 ] Pada April 2007, lebih dari 20 juta domain Internet telah layanan web host pada server dengan PHP terinstal dan mod_php tercatat sebagai yang paling populer Server HTTP Apache modul. [36] Penting situs web yang ditulis dalam PHP termasuk menghadap bagian pengguna dapat , [37] Wikipedia ( MediaWiki ), [38] Digg , [39] Joomla , EZ Publish , Wordpress , [40] Drupal [41] dan Moodle . [42]

Keamanan

The National Vulnerability Database maintains a list of vulnerabilities found in computer software. The Kerentanan Nasional Database menyimpan daftar kerentanan ditemukan di perangkat lunak komputer. The overall proportion of PHP-related vulnerabilities on the database amounted to: 20% in 2004, 28% in 2005, 43% in 2006, 36% in 2007, 35% in 2008, and 30% in 2009. [ 43 ] Most of these PHP-related vulnerabilities can be exploited remotely: they allow attackers to steal or destroy data from data sources linked to the webserver (such as an SQL database ), send spam or contribute to DoS attacks using malware , which itself can be installed on the vulnerable servers. Proporsi keseluruhan yang berhubungan dengan kerentanan PHP pada database sebesar: 20% pada tahun 2004, 28% di tahun 2005, 43% di tahun 2006, 36% pada tahun 2007, 35% pada tahun 2008, dan 30% pada tahun 2009. [43] Sebagian besar ini terkait dengan kerentanan PHP dapat dieksploitasi dari jarak jauh: mereka memungkinkan penyerang untuk mencuri atau menghancurkan data dari sumber data yang terkait dengan webserver (seperti SQL database ), mengirim spam atau berkontribusi pada serangan DoS menggunakan malware , yang dengan sendirinya dapat diinstal pada rentan server.

These vulnerabilities are caused mostly by not following best practice programming rules: technical security flaws of the language itself or of its core libraries are not frequent (23 in 2008, about 1% of the total). [ 44 ] [ 45 ] Recognizing that programmers cannot be trusted, some languages include taint checking to detect automatically the lack of input validation which induces many issues. Kerentanan ini disebabkan sebagian besar dengan tidak mengikuti aturan pemrograman praktek terbaik: kelemahan keamanan teknis dari bahasa itu sendiri atau dari perpustakaan inti tidak sering (23 tahun 2008, sekitar 1% dari total). [44] [45] Menyadari bahwa programmer tidak bisa dipercaya, beberapa bahasa termasuk noda pemeriksaan untuk mendeteksi secara otomatis kurangnya validasi input yang menginduksi banyak masalah. Such a feature is being developed for PHP, [ 46 ] but its inclusion in a release has been rejected several times in the past. [ 47 ] [ 48 ] Fitur tersebut sedang dikembangkan untuk PHP, [46] tetapi dimasukkan dalam rilis telah ditolak beberapa kali di masa lalu. [47] [48]

Hosting PHP applications on a server requires a careful and constant attention to deal with these security risks. [ 49 ] There are advanced protection patches such as Suhosin and Hardening -Patch, especially designed for web hosting environments. [ 50 ] PHP hosting aplikasi pada server dan konstan memerlukan perhatian untuk menghadapi risiko ini keamanan. [49] Ada perlindungan canggih patch seperti Suhosin dan Hardening -Patch, terutama dirancang untuk lingkungan web hosting.

Script PHP untuk Arsip Artikel Berdasarkan Bulan dan Tahun

Artikel ini merupakan request dari salah satu member rosihanari.net yang bernama Fajar Israwan. Mas Fajar ini menanyakan bagaimana ide cara membuat script PHP untuk menampilkan arsip artikel berdasarkan bulan dan tahun. Sebagai contoh gambarannya, seperti halnya yang muncul di WordPress. Pada blog saya ini juga ada, yaitu pada bagian Archives yang terletak di sidebar sebelah kanan.

Apabila kita menggunakan WordPress atau Blogger, tentu untuk membuat arsip dalam bentuk bulan dan tahun tentunya tidak menjadi masalah karena hanya menggunakan widget, selesai… Namun bagaimana bila kita ingin membuatnya di CMS buatan kita sendiri?

Konsep kerja dari list arsip berdasarkan bulan dan tahun adalah, bila salah satu bulan dan tahun ini diklik, maka akan menampilkan list artikel yang diposting pada bulan dan tahun tersebut. Paham ya maksudnya.. :-) Nah… sekarang kita akan coba mencari ide untuk membuatnya.

OK… di sini kita asumsikan Anda sudah bisa membuat interface atau form untuk input artikelnya. Sekarang kita hanya fokuskan ke arsip artikelnya saja.

Misalkan diberikan tabel untuk menyimpan data artikel adalah sbb:

CREATE TABLE article (
id int(11) auto_increment,
title varchar(100),
content text,
author varchar(100),
category int(11),
postdate date,
PRIMARY KEY (id)
)

dengan keterangan: id adalah field untuk menyimpan data id artikel (kita gunakan autoincrement), title menyatakan judul artikel, content adalah isi artikel, author adalah penulis artikel, category digunakan menyimpan id kategori artikel, dan postdate menyimpan tanggal berapa artikel diposting.

Sebagai contoh, misalkan dalam tabel article tersebut telah tersimpan data artikel sbb:

INSERT INTO `article` VALUES ('1', 'Title A', 'Ini adalah konten dari title A', 'Mr. X', '1', '2009-01-13');
INSERT INTO `article` VALUES ('2', 'Title B', 'Ini adalah konten dari title B', 'Mr. Y', '1', '2009-01-15');
INSERT INTO `article` VALUES ('3', 'Title C', 'Ini adalah konten dari title C', 'Mr. X', '2', '2009-02-04');
INSERT INTO `article` VALUES ('4', 'Title D', 'Ini adalah konten dari title D', 'Mr. Y', '2', '2009-02-10');

Selanjutnya bagaimana ide untuk membuat script arsip berdasarkan bulan dan tahun? Idenya adalah yang pertama kita membuat list bulan dan tahunnya terlebih dahulu. Dari data artikel di atas, terlihat bahwa dari keempat artikel tersebut terdapat 2 buah list bulan dan tahun, yaitu pada bulan Januari 2009 dan Pebruari 2009. Nah… harapan kita, nantinya dalam script akan muncul list sbb:

January 2009
February 2009

Kalau kita klik ‘January 2009′ maka akan muncul list artikel yang diposting pada bulan dan tahun tersebut, dalam hal ini artikel ber ID 1 dan 2. Demikian pula kalau yang diklik adalah ‘February 2009′.

OK… untuk membuat list bulan dan tahun di atas, sebenarnya kita hanya main di SQL Query saja dengan memanfaatkan function date_format(). Data apa yang diolah menggunakan function tersebut? Ya.. data yang diolah adalah pada field POSTDATE. Berikut ini adalah query SQL untuk menampilkan bulan dan tahun.

SELECT DISTINCT date_format(postdate, '%M %Y') FROM article

Bila query di atas Anda jalankan di MySQL, maka akan muncul list seperti di atas. Di sini ‘%M %Y’ merupakan format untuk tanggal yang akan ditampilkan, dengan %M menyatakan nama bulan dalam bentuk kata January s.d December dan %Y menyatakan format tahun dalam 4 digit.

Sekarang kita implementasikan query di atas ke dalam script PHP. Berikut ini scriptnya:

arsip.php


mysql_connect("dbhost", "dbuser", "dbpass");
mysql_select_db("dbname");

$query = "SELECT DISTINCT date_format(postdate, '%M %Y') as bulantahun FROM article";
$hasil = mysql_query($query);
echo "
    ";
    while ($data = mysql_fetch_array($hasil))
    {
    echo "
  • ".$data['bulantahun']."
  • ";
    }
    echo "
";

?>

OK… apabila script arsip.php di atas dijalankan, maka akan muncul list bulan dan tahun namun belum ada linknya. Padahal menurut skenario kita, list bulan dan tahun ini dapat diklik. Apabila diklik maka akan muncul daftar artikel yang diposting pada bulan dan tahun tersebut. Oleh karena itu kita harus membuat linknya pada script arsip.php di atas. Nah… misalkan link tersebut kita arahkan ke viewarsip.php. Sehingga script arsip.php harus diubah menjadi sbb:

arsip.php


mysql_connect("dbhost", "dbuser", "dbpass");
mysql_select_db("dbname");

$query = "SELECT DISTINCT date_format(postdate, '%M %Y') as bulantahun FROM article";
$hasil = mysql_query($query);
echo "";

?>

Apakah script di atas sudah selesai? Belum ternyata. Sekarang yang menjadi pertanyaan adalah, bagaimana mengkaitkan antara list bulan dan tahun dengan linknya. Kaitan ini digunakan untuk menentukan artikel apa yang akan muncul dalam viewarsip.php bila diklik salah satu bulan dan tahun. Sehingga dalam link hendaknya diberikan suatu parameter yang menyatakan bulan dan tahunnya. Sekarang kita coba tambahkan parameter dalam linknya.

arsip.php


mysql_connect("dbhost", "dbuser", "dbpass");
mysql_select_db("dbname");

$query = "SELECT DISTINCT date_format(postdate, '%M %Y') as bulantahun FROM article";
$hasil = mysql_query($query);
echo "";

?>

OK.. bila script arsip.php yang telah diperbaiki di atas dijalankan di browser maka sudah muncul link yang terkait dengan masing-masing list bulan dan tahun. Proses berikutnya kita buat script viewarsip.php. Script ini akan menampilkan daftar artikel yang diposting pada bulan dan tahun yang diklik pada arsip.php.

Bagaimana ide membuat viewarsip.php ini? Ya… kita gunakan saja query SQL untuk menampilkan data artikel yang bulan dan tahun postingnya bersesuaian. Nah… parameter yang diberikan pada link nantinya kita gunakan pada querynya untuk memfilter artikel yang sesuai bulan dan tahunnya.

viewarsip.php


$blnth = $_GET['blnth']; // membaca bulan dan tahun dari parameter link

mysql_connect("dbhost", "dbuser", "dbpass");
mysql_select_db("dbname");

// query SQL untuk menampilkan artikel berdasarkan bulan dan tahun
// yang diambil dari parameter link

$query = "SELECT * FROM article WHERE date_format(postdate, '%M %Y') = '$blnth'";
$hasil = mysql_query($query);
while ($data = mysql_fetch_array($hasil))
{
echo "

".$data['title']."

";
echo "

Penulis : ".$data['author']."

";
echo "

Diposting pada tanggal : ".$data['postdate']."

";
echo "

".$data['content']."

";
}
?>

Nah… sudah jadi deh.

Pada script viewarsip.php di atas, seluruh isi artikel termasuk kontennya akan ditampilkan semua. Mungkin alangkah lebih baik jika artikel ditampilkan tidak seluruhnya, namun hanya sebagian saja, misalnya title, author, postdatenya dan mungkin sedikit intro dari artikelnya. Trus di bawahnya terdapat link misalkan ‘READ MORE‘, atau ‘BACA SELENGKAPNYA‘. Nah… apabila link tersebut diklik akan muncul full articlenya. Untuk yang ini, silakan Anda coba sendiri ya…. Masa’ semuanya harus saya :-) Sebagai petunjuk saja untuk membuat seperti ini, nantinya Anda gunakan ID artikel sebagai parameter link pada READ MORE nya. Mengapa menggunakan ID artikel? Ya… karena ID artikel ini pembeda yang unik dari setiap artikel. ID artikel tersebut yang nantinya diproses di query nya untuk menampilkan detail artikel yang akan dibaca. Konsepnya hampir sama dengan yang saya berikan di atas.

OK… met mencoba ya…

Open Source