willpower Posted October 15, 2007 Share Posted October 15, 2007 membershipno is an INT $search = "0102" I need to SELECT * FROM members WHERE membershipno LIKE 'search%' Can anyone help me search for an INT like this? Quote Link to comment https://forums.phpfreaks.com/topic/73305-mysql-query-search-for-int-like/ Share on other sites More sharing options...
richardw Posted October 15, 2007 Share Posted October 15, 2007 Try this SELECT * FROM members WHERE membershipno LIKE '%". $search ."%' Quote Link to comment https://forums.phpfreaks.com/topic/73305-mysql-query-search-for-int-like/#findComment-369889 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.