|
| |
|
|
teimky
Posts: 77 Joined: 11/6/2006 Status: offline
|
Match() Against() SQL wont accept "" for a ph... - 4/30/2007 11:08:33
Hi, For all you MySQL experts on here may I ask why my match() - against() statement wont let me put double quotes in to make it a phrase match? Whilst the statement below works it searches for each word individually if a user searches for more than 1 word.. WHERE MATCH(book_title) AGAINST('" & request.form("BOOK_TITLEP")&"'IN BOOLEAN MODE)" (Therefore a search for "Amber Spyglass" would return Child in Amber, Amber Spyglass, Silver Spyglass) I want it to only return "Amber Spyglass" The MySQL manual says to put "" around the against part to treat it as a phrase but this errors: WHERE MATCH(book_title) AGAINST('" "& request.form("BOOK_TITLEP")&""'IN BOOLEAN MODE)" I guess it doesnt like two sets of " next to each other? Any ideas? Thanks, Mark.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|