hi
I would like to offer to the webusers, that they can choose, where the keywords have to be found. (Title, Meta or Body). Now I tried to build the sql statment dynamicly. But there are never any results returning.
<if $wheretosearch eq "Title">
<sum "%s" "Title likep " $keyword>
<elseif $wheretosearch eq "Meta">
<sum "%s" "Meta likep " $keyword>
...
</if>
<$where = $ret>
<sql "select * from html where $where">...</sql>
there is no error but also no result.
thanks for any help
Marce
I would like to offer to the webusers, that they can choose, where the keywords have to be found. (Title, Meta or Body). Now I tried to build the sql statment dynamicly. But there are never any results returning.
<if $wheretosearch eq "Title">
<sum "%s" "Title likep " $keyword>
<elseif $wheretosearch eq "Meta">
<sum "%s" "Meta likep " $keyword>
...
</if>
<$where = $ret>
<sql "select * from html where $where">...</sql>
there is no error but also no result.
thanks for any help
Marce