doddsey_65 Posted April 13, 2010 Share Posted April 13, 2010 Can you put a variable into a statements LIKE function? eg/ SELECT * FROM somewhere WHERE row LIKE %$variable% Ive tried it this way but i get nothing Quote Link to comment https://forums.phpfreaks.com/topic/198334-search-box/ Share on other sites More sharing options...
Jax2 Posted April 13, 2010 Share Posted April 13, 2010 Yes, easily... query=("Select * from blabla where xxxx LIKE '%".$query."%' ........ etc Quote Link to comment https://forums.phpfreaks.com/topic/198334-search-box/#findComment-1040650 Share on other sites More sharing options...
doddsey_65 Posted April 13, 2010 Author Share Posted April 13, 2010 perfect thankyou my good man! Quote Link to comment https://forums.phpfreaks.com/topic/198334-search-box/#findComment-1040651 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.