naresh_staplelogic Posted April 27, 2015 Share Posted April 27, 2015 http://stackoverflow.com/questions/29881417/how-to-search-punjabi-regional-language-keyword-in-mysql i am getting different result when running query using PHPMyAdmin and using PHP script.It is our regional language Punjabi keyword ਹਰਪ੍ਰੀਤ ਕੌਰ ਪਟਿਆਲਾI am executing below MySql query using PHPMyAdmin select * from postinfo where match(info) against('ਹਰਪ੍ਰੀਤ ਕੌਰ ਪਟਿਆਲਾ') Giving me accurate result.But when running same Query using PHP form Search**Code:** $name=trim($_POST['name']); $sql="select * from postinfo where match(info) against('$name') LIMIT 10"; $result=mysql_query($sql); Then the result is blank.Image getting result using mysql query in PHPMyAdminhttp://i.stack.imgur.com/SX20C.png Link to comment https://forums.phpfreaks.com/topic/295890-how-to-search-punjabi-regional-language-keyword-in-mysql/ Share on other sites More sharing options...
Barand Posted April 27, 2015 Share Posted April 27, 2015 Ask MySql why. Add this line to the above code if (!$result) die(mysql_error()); Note that mysql_ functions are deprecated - you should be using mysqli or PDO functions Link to comment https://forums.phpfreaks.com/topic/295890-how-to-search-punjabi-regional-language-keyword-in-mysql/#findComment-1510054 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.