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? 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 ."%' 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
Archived
This topic is now archived and is closed to further replies.