Coba pake regex preg_replace();
jadi regex mencari kata yang cocok, lalu kata yang cocok tersebut di
replace dengan "<b>$kata</b>"
Yang artinya kata kunci anda akan di buat tebal.
> Setelah saya lihat2, pseucode ini cuma nyari dengan keyword yg dipilah2
> gitu ya? ntar kalo udah ketemu trus dicocokan, trus warnanya mo dirubah
> gimana ya? saya pake str_replace() tapi gak bisa.. apa metodenya salah
> ya?
>
> Sebelumnya makasih ya..
>
> Natali Ardianto <[EMAIL PROTECTED]> wrote:
> Oowww. kalau misalnya seperti itu, ya anda harus membuat programnya.
> Misal:
>
> $arg = "php programming";
> $keyword = explode($arg, " ");
> $query = "SELECT bla bla bla WHERE ";
> for($i = 0; $i < length($keyword); $i ++) {
> $query .= " content LIKE '%" . $keyword[$i] . '%' AND ";
> */ saya pakai AND karena dalam satu row content harus ada dua keyword
> itu /*
> }
> $query . " AND 1 = 1";
> $rs = mysql_query($query);
>
> dan seterusnya.. NOTE: ini hanya pseudocode, saya buat instan tanpa
> mengetesnya. Tujuannya hanya agar anda mengerti konsepnya saja. Ada yg
> mau memperbaikinya?
>
>
> On 7/4/05, arie <[EMAIL PROTECTED]> wrote:
>> Kalo katanya terpisah model google gimana? misalnya keyword nya: php
>> programming, ntar dia ngeluarin data yang ada hubungannya sama "php"
>> atau "programming", atau "php programming", sementara saya akalin pake
>> array, soalnya kalo keyword nya jadi 1 string kok gak bisa nyari yg
>> misah2 gitu ya...
>>
>> trus highlight nya gimana? kayak google gitu, tebel2 nya misah
>> dimana2....
>>
>> makasih ya..
>
>
>
>
> ----------------------------------------------------------
> Komunitas MasterWeb Indonesia http://www.master.web.id
> ----------------------------------------------------------
> MWN, Masternya WEBHOSTING di Indonesia, Indo/USA Servers,
> Customer Support 24 jam http://www.masterwebnet.com
> ----------------------------------------------------------
> WebDevelopment,Designing/Programming http://www.dlanet.com
> ----------------------------------------------------------
>
>
>
> ---------------------------------
> YAHOO! GROUPS LINKS
>
>
> Visit your group "milis-masterweb" on the web.
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
>
> ---------------------------------
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
> ----------------------------------------------------------
> Komunitas MasterWeb Indonesia http://www.master.web.id
> ----------------------------------------------------------
> MWN, Masternya WEBHOSTING di Indonesia, Indo/USA Servers,
> Customer Support 24 jam http://www.masterwebnet.com
> ----------------------------------------------------------
> WebDevelopment,Designing/Programming http://www.dlanet.com
> ----------------------------------------------------------
> Yahoo! Groups Links
>
>
>
>
----------------------------------------------------------
Komunitas MasterWeb Indonesia http://www.master.web.id
----------------------------------------------------------
MWN, Masternya WEBHOSTING di Indonesia, Indo/USA Servers,
Customer Support 24 jam http://www.masterwebnet.com
----------------------------------------------------------
WebDevelopment,Designing/Programming http://www.dlanet.com
----------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/milis-masterweb/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/