Sample words:
iknkr st nm krt prk
iknkr vhgr j k pth
iknkr hkm st
iknkr sr vhgr j k pth
Required Condition
Now, if a user types: ik s
the query will return:
iknkr st nm krt prk
iknkr sr vhgr j k pth
if a user types: i v
the query will return:
iknkr vhgr j k pth
Currently Trying:
SELECT `walpha` AS word, pageID AS id
FROM `SX01`
WHERE `table`= 'S01'
AND `walpha` like '" . $this->db->escape_like_str($searchVal['keyword']) . "%'
LIMIT 100"
But using this user have to type: iknkr s
to get the result
iknkr st nm krt prk
iknkr sr vhgr j k pth
Can anyone suggest, what will be the right way of doing it.