Q and A::Help with custom module search.inc.php
Hi XOOPSers im a php newbie
..i have converted my php simple directory application to xoops module but im stuck with xoops search
i have this search query in my page module... which is working fine
but now i want to integrate the xoops search (mysite.com/search.php) in my module instead of using own search in my php page
what i did so far
in xoops_version.php
Hi XOOPSers im a php newbie
..i have converted my php simple directory application to xoops module but im stuck with xoops search
i have this search query in my page module... which is working fine
global $xoopsDB;
$result = "SELECT * FROM ".$xoopsDB->prefix("directory_info")." where name like '%" . $_POST['search'] . "%' or department like '%" . $_POST['search'] . "%' or unit like '%" . $_POST['search'] . "%' or position like '%" . $_POST['search'] . "%' ORDER BY name";but now i want to integrate the xoops search (mysite.com/search.php) in my module instead of using own search in my php page
what i did so far
in xoops_version.php
// Search
$modversion['hasSearch'] = 1;
$modversion['search']['file'] = "include/search.inc.php";
$modversion['search']['func'] = "directory_search";func...