birlikte mysql ve veya sorgu

0 Cevap php

Ben bir kullanıcı adı, yıl, üyesi, yıl (metin alanı) ile arayabileceğiniz bir arama motoru yapmak gerekir

search will be with any one field or search will be with all the field or search will be with more than one field -How it is possible by using only one query?? now my code is

$query="select * from fsb_profile where profile_name = '".$_REQUEST['name']."' and 
    profile_member= '".$_REQUEST['type']."' and profile_year= '".$_REQUEST['year']."'  
    and profile_course='".$_REQUEST['course']."' or profile_name = '".$_REQUEST['name']."'  
    or profile_member= '".$_REQUEST['type']."' or profile_year= '".$_REQUEST['year']."'  
    or profile_course='".$_REQUEST['course']."'";

-Ama çalışmıyor?

0 Cevap