php - How to work search query like or like and status -


if search multiple keywords in mysql query t_name '%key%' or t_name '%key%' want filter if tour status 1 show has 1 status in database.
every thing working , status='1' not working
below query code:

if($stmt=$connc->query("select * jaipuragra_home_tours t_name '%shimla%' or t_name '%manali%' , status='1'")) 

any body can , plz reply

if want add email array should make variable array first $email= array(); after declare variable array can add $email = $_post['email'];


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -