php - how to write SQL Query for 3 column values in one field? -
i want answer yuvi yuvi@gmail.com 9874563214, if user search name email mobile means ans come this.
$sql=mysql_query("select name,email_id,mobile_number user_information (name '".$user_search."%'or email_id '".$user_search."%' or mobile_number '".$user_search."%') , (status='active')"); $res=mysql_num_rows($sql);
you can try below code
$sql=mysql_query("select concat_ws(' ', name,email_id,mobile_number) details user_information (name '".$user_search."%'or email_id '".$user_search."%' or mobile_number '".$user_search."%') , (status='active')");
Comments
Post a Comment