Textfield nya kan bisa dipecah per Token. Lalu tiap2 Token nya nanti dimasukkan ke dalam query.
Jadi kira2 flow nya seperti ini: Misalkan TextField nya = "Agus Setiawan" Dipecah per Token jadi: Token[0] = "Agus" Token[1] = "Setiawan" Trus di query nya jadi: Bla blab la - WHERE blab la bla Like %agus% AND %setiawan% Best Regards, Andreas _____ From: jug-indonesia@yahoogroups.com [mailto:jug-indone...@yahoogroups.com] On Behalf Of Sutopo Giri Sent: Wednesday, March 03, 2010 11:43 AM To: jug-indonesia@yahoogroups.com Subject: Re: [JUG-Indonesia] java + sql mencari nama >> klo dijadikan %agus% AND %setiawan% aj ;) ga bisa mas. cara itu kan jika ada 2 textfield. jadi textfield1 tuliskan 'agus' dan textfield2 tuliskan 'setiawan'. sedangkan kalo saya hanya ada 1 textfield jadi di textfield tuliskan 'agus setiawan'. jadi qta harus tentukan mana kata1 dan mana kata2. trus di databasenya jg cm ada 1 field yaitu field nama. bagaiaman yach caranya ? IMPORTANT NOTICE: The information in this e-mail (and any attachments) is confidential. If you are not the intended recipient, you must not use or disseminate the information. If you have received this e-mail in error, please immediately send notification by replying this e-mail and permanently delete the original and any copies or printouts thereof. Although this e-mail and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by Avrist Assurance, for any loss or damage arising in any way from its use.