I have 2 fields say fname and lname and the query str contains full name say
"Madhuri Dixit" how do improve the following code.
$key=$keyword;
$keyword = "%".$keyword."% ";
$sql = "Select * from tbl_orders where fname LIKE '$keyword' or lname LIKE '$keyword' order by id desc";
"Madhuri Dixit" how do improve the following code.
$key=$keyword;
$keyword = "%".$keyword."% ";
$sql = "Select * from tbl_orders where fname LIKE '$keyword' or lname LIKE '$keyword' order by id desc";
Comment