Intro p/s: sesiapa yang bleeyy solve my problem niihh, Owl janji
belanja makan after dapat gaji hujung bulan niiiee. You choose whatever
you want to eat, I treat!!! Tak tipu!!! Mana-mana restaurant or food
court or hotel pun, can bring your siblings and parents also. Owl janji!!!
HHMM... Asssalamualaikum kalian semua. Im stuck in some PHP function.
Sila rujuk gambarajah di atas. I give the picture so its easy for you
to understand. Okay. We start from here.
1. Yang makhluk font biru tuue, is a FAQ yang Owl retrive from
the database. In MySQL table I state it as "faqquestion", and each of them
has "faq_id" and "faqanswer" in table "FAQ".
2. And the input text sebelah kanan tuuue, adalah aturan arrangement
output for display FAQ in other pages, I set in MySQL table as
"setarrange", also in table "FAQ". You can change it, and I already set
"NO DUPLICATE NUMBERS", if still duplicated (tak bleeey sama laaah),
will re-enter the data again.
3. The pain (or maybe other programmers can call me a stupid and dumber) problem
is, macam mana bila Owl tukar number 1 as "2" and number 2 as "1"
kemudian submit (Click button "Arrange FAQ") tuuee ke page lain,
but AALLLL the "faq_id", "faqquestion" and "setarrange" can be submitted sekali
dan SET balik the SQL table seperti mana yang Owl daah tukar number tadi untuk
setiap satu-satunya "faq_id"?
MACCAAAMMM MAANNAAA???!! AAARRGGHH!! PENING AAKKUU!!! AADDDUUUHH!!!
MINTAAAKK TOLONGG SANGAATT222!!!
4. Must use an array ke? Or an object? Mana satu niieehh? Kalau array, macam
mana naak submit banyak-banyak bila I click the submit button? Faham tak maksud
Owl? Dapat tak what I mean? Just dont look at it as simple as you thought
without you concern what I mean...
5. Owl daahh pernah solve problem niie using JSP (JavaServer Pages), tapi
memang laah mudah sebab embedded with JavaBean technology but in PHP...
EERRGGHH!! Im clueless!! Totally sengal-sengal ayam playing with the
PHP object...