Forum Moderators: coopster

Message Too Old, No Replies

Suggesting alternatives with search

         

stever_nl

12:22 pm on Mar 29, 2005 (gmt 0)

10+ Year Member



Need some help on this issue,

I want to incorporate some marketing in my site search engine by suggesting links (websites) when certain keywords are being used.

For example:

when a guest is searching the terms: "oil Alaska"

I want to add a suggestion link to www.example.com

So I need to tell php : if $query contains "Alaska" ... But I cannot seem to find the correct PHP commands for this...

Maybe first: eval $query?

Any help is appreciated!

[edited by: jatar_k at 5:21 pm (utc) on Mar. 29, 2005]
[edit reason] examplified [/edit]

jamie

2:23 pm on Mar 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi stever,

WHERE $url LIKE '%alaska%'

would work.