dbradbury Posted April 7, 2010 Share Posted April 7, 2010 as ive tried with two '=' and it found that as a mistake.. $artist = mysql_query("SELECT * FROM phpbb_forums WHERE forum_name='$a'"); but i want the forum name to be exactly!! or tis the default? Link to comment https://forums.phpfreaks.com/topic/197925-how-you-make-a-mysql-query-to-be-exactly-accurate/ Share on other sites More sharing options...
br0ken Posted April 7, 2010 Share Posted April 7, 2010 the equality operator (equals sign) checks for an exact match. If you have space on the end or the case is different then a match will not be returned. To get inexact matches you could convert the text to lower case using LOWER or use the LIKE operator. Link to comment https://forums.phpfreaks.com/topic/197925-how-you-make-a-mysql-query-to-be-exactly-accurate/#findComment-1038605 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.