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 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 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! Link to comment https://forums.phpfreaks.com/topic/198334-search-box/#findComment-1040651 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.