mysql_select_db($database_otop, $otop);
$query_rs_select = "SELECT ".$row_rs_reset['rs_field']." FROM member WHERE mb_show = 1 AND mb_username like '%".$row_rs_reset['mb_rs_user']."%' AND mb_email like '%".$row_rs_reset['mb_rs_email']."%' AND mb_birthday like '".$row_rs_reset['mb_rs_birthday']."'";
$rs_select = mysql_query($query_rs_select, $otop) or die(mysql_error());
$row_rs_select = mysql_fetch_assoc($rs_select);
$totalRows_rs_select = mysql_num_rows($rs_select);
mysql_select_db($database_otop, $otop);
$query_rs_select = "SELECT ".$row_rs_reset['rs_field']." FROM member WHERE mb_show = 1 AND mb_username like '%".$row_rs_reset['mb_rs_user']."%' AND mb_email like '%".$row_rs_reset['mb_rs_email']."%' AND mb_birthday like '".$row_rs_reset['mb_rs_birthday']."'";
$rs_select = mysql_query($query_rs_select, $otop) or die(mysql_error());
$row_rs_select = mysql_fetch_assoc($rs_select);
$totalRows_rs_select = mysql_num_rows($rs_select);
พอ echo $query_rs_select;ออกมามันจะได้คือ
SELECT mb_username FROM member WHERE mb_show = 1 AND mb_username like '%pangkung%' AND mb_email like '%[email protected]%' AND mb_birthday like '2532-01-06'