search bar
search bar
Helo, I have a problem, I limit the records by department, for example in my page the records shows only the IT department, but when I search a name in search bar for example I will search a name of employee in other department their record will show. how do i limit the search bar by department only? thanks a lot.
$sWhere = "WHERE department='$department'";
if ( $_GET['sSearch'] != "" )
{
$sWhere = "WHERE (";
for ( $i=0 ; $i
$sWhere = "WHERE department='$department'";
if ( $_GET['sSearch'] != "" )
{
$sWhere = "WHERE (";
for ( $i=0 ; $i
This discussion has been closed.
Replies
Allan
$sWhere = "WHERE department='$department'";
if ( $_GET['sSearch'] != "" )
{
$sWhere = "WHERE (";
for ( $i=0 ; $i
Allan