Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 10:18 pm (All times are UTC )

 





Post new topic Reply to topic  [ 18 posts ] 
Author Message
Posted: Tue Jul 17, 2007 4:12 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Jul 17, 2007 4:04 am
Posts: 2
আমি বাংলায় একটি সাইট ডেভেলপ করছি, ডাটাবেইজ (MySQL)দিয়ে। এতে ডাটা সুন্দর ইনপুট করতে পারছি, কিন্তু যখনই php দিয়ে কল করে

search করাতে বলছি তখন যে অংশটুকু আমি longblob হিসাবে ডাটাবেইজে ইনপুট করি তা, ঠিকতমতো দেখায়, কিন্তু নরমাল টেক্সট ফিল্ডের

বাংলা ????? এমন দেখায়। সমাধানটা কি হবে বলতে পারেন? phpMyAdmin এ ঢুকে তাতে ডাটাবেইজটি একটিভ করে সার্চ দিলে অবশ্য সুন্দরভাবেই ফলাফল দেখায়।
I am in great need of that.


Top
   
 
Posted: Tue Jul 17, 2007 5:57 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Aug 20, 2005 1:44 pm
Posts: 307
Location: Melbourne, Australia
This is related to collation of your table and connection. Search google. I knew a blog which had this issue addressed, but that is down now.

alagmgir

_________________
www.apona-bd.com Bangla OCR and other software.
www.joomla.org.bd Bangla Joomla Site


Top
  E-mail  
 
Posted: Wed Jul 18, 2007 4:35 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Jul 17, 2007 4:04 am
Posts: 2
ধন্যবাদ আপনার মন্তব্যের জন্য।

আমি collation তা রেখেই করেছিলাম, কিন্তু ইনপুট এবং আউটপুট (php দিয়ে) করলে ঠিকই বাংলায় ইনপুট এবং আউটপুট হয়। সমস্যা হল, যখন সার্চিং রিকোয়েস্ট দেয়া হয় (অভ্র দিয়ে), নরমালি যেভাবে আমরা সার্চিং ফর্ম তৈরী করি সেভাবে (html/php), তখন দেখা যায়, সার্চিং ফর্মে (php)ঐ স্ট্রিংগুলোর ভেরিয়েবল যাচ্ছে, কিন্তু ডাটাবেইজ থেকে কোন আউটপুট নিতে পারছে না। এটাই হল মূল সমস্যা। নীচে আমার সাচিং ফর্মের নমুনা দেয়া হল:

সার্চ ইনপুট ফর্ম:



New Document











Search For:


ক্যাটেগরী:


সাব-ক্যাটেগরী:








*******************************
search.php:




New Document










include ('db_connect.php');

//include ('common_lib.php');

$cat=$_POST['cat']; 

$subcat=$_POST['subcat'];

$query= "SELECT * FROM agri WHERE cat LIKE '%$cat%' AND subcat LIKE '%$subcat%' ";

$result = mysql_query ($query);

$num= mysql_num_rows($result);


echo "finding:".$cat." and ".$subcat."
";


echo "Record found:".$num."
";


while($row = mysql_fetch_array($result))
{
PRINT "Category: ";
print $row["cat"];
print (" ");
print ("
");
PRINT "Subcat: ";
print $row["subcat"];
print ("

");
PRINT "Content: ";
print $row["content"];
print ("

");
}

?>





সমাধান needed, urgently.

ধন্যবাদ।



Top
   
 
Posted: Wed Jul 18, 2007 6:30 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Aug 20, 2005 1:44 pm
Posts: 307
Location: Melbourne, Australia
From http://hasin.wordpress.com/2006/07/18/s ... -database/


Well, If you just set the collation as “utf8-general-ci” that wont do all the things for storing and retrieving bangla unicode texts properly. There are something more to do. Last night while working for a project I just found the solution.

You must add these two lines just after selecting the database, i.e mysql_select_db() function.

mysql_query(’SET CHARACTER SET utf8′);
mysql_query(”SET SESSION collation_connection =’utf8_general_ci’”);

After executing these two statements MySQL will handle the rest.


good luck

_________________
www.apona-bd.com Bangla OCR and other software.
www.joomla.org.bd Bangla Joomla Site


Top
  E-mail  
 
Posted: Sun Oct 07, 2007 3:02 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Sun Oct 07, 2007 1:53 pm
Posts: 52
How did you make a bangla search engine in your site. Please tell me everything in details.


Top
  E-mail  
 
Posted: Fri Nov 14, 2008 1:58 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Nov 14, 2008 1:48 am
Posts: 2
I agree with alamgir99 google provides solution to 99% of my problems. Pls. let me know if you still need help.

_________________
http://www.countrywiderate.info/
[url]http://www.suzuki-hayabusa.org/
[/url]
http://allloaninfo.info/


Top
  E-mail  
 
Posted: Fri Nov 14, 2008 7:43 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Nov 14, 2008 7:39 am
Posts: 13
Location: Bengal
I'm having the same problem, php error with:
Code:
$query= "SELECT * FROM agri WHERE cat LIKE '%$cat%' AND subcat LIKE '%$subcat%\" ";


can't debug it :eek:

Signature Rules: viewtopic.php?t=65

_________________
Joomla Fan http://freetubetv.net


Top
  E-mail  
 
Posted: Fri Nov 14, 2008 9:30 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Nov 14, 2008 9:22 pm
Posts: 3
This thread is quite old. I think the thread owner has already solved this problem.
If he has not, I recommend him to look for MySQL Tutorials. Anyway, some hosting companies will handle these kind of problems, as they are usually easy to be solved.

To Travian:
Try this code instead:
Code:
$query= "SELECT * FROM agri WHERE cat LIKE '%$cat%' AND subcat LIKE '%$subcat%' ";


Does that solve your problem? You mistyped an ' into a \".

Best regards!

_________________
Signature Rules: viewtopic.php?t=65


Top
  E-mail  
 
Posted: Mon Dec 29, 2008 1:01 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Dec 29, 2008 12:55 pm
Posts: 10
Quote:
$query= "SELECT * FROM agri WHERE cat LIKE '%$cat%' AND subcat LIKE '%$subcat%' ";

Does that solve your problem? You mistyped an ' into a \".


that solved my problem. thank you very much!

_________________
Joomla Rocks!
http://www.ebarcade.com


Top
  E-mail  
 
Posted: Wed Dec 31, 2008 3:24 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Dec 31, 2008 3:15 pm
Posts: 2
Quote:
This thread is quite old. I think the thread owner has already solved this problem.
If he has not, I recommend him to look for MySQL Tutorials. Anyway, some hosting companies will handle these kind of problems, as they are usually easy to be solved.


where i can find Mysql tutorial please still newbie in here i hope someone can give from the basic

_________________
joomla newbie


Top
  E-mail  
 
Posted: Sun Jan 11, 2009 8:07 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Dec 02, 2008 5:12 pm
Posts: 6
Creating a MySQL Database Detailed Tutorial http://www.siteground.com/tutorials/php-mysql/mysql_database_user.htm
This can help you :D

_________________
Please read forum rules regarding signatures: viewtopic.php?f=8&t=65


Top
  E-mail  
 
Posted: Mon Mar 30, 2009 11:56 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Mar 30, 2009 11:47 pm
Posts: 4
Add those;
mysql_query(’SET CHARACTER SET utf8′);
mysql_query(”SET SESSION collation_connection =’utf8_general_ci’”);

_________________
Please read forum rules regarding signatures: viewtopic.php?t=65


Top
  E-mail  
 
Posted: Fri Apr 17, 2009 11:22 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Apr 01, 2009 8:42 pm
Posts: 120
Location: kushtia,Bangladesh
MySQL command consule বাংলা কমান্ড আেছ িক?
আিম জানেত চাই এভােব বাংলায় ডাটােবইজ বা েটিবল ৈতরী করা যায় িক ভােব।

_________________
matinice
ICE,IU,BANGLADESH.


Top
  E-mail  
 
Posted: Tue May 12, 2009 3:38 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue May 12, 2009 12:23 am
Posts: 23
thank you i have this question too.

_________________
ฟังเพลงยอดนิยม : http://www.djsonny.com/
เพลงเพราะ ๆ เพลงใหม่ ๆ ทุกวัน http://www.djsonny.com/


Top
  E-mail  
 
Posted: Wed Jun 03, 2009 1:33 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sat Apr 18, 2009 9:38 pm
Posts: 143
Location: UK
Yoreeka! Thank you.

_________________
www.hoodiadietworks.com | www.findiet.com


Top
  E-mail  
 
Posted: Thu Jun 25, 2009 11:38 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jan 16, 2009 11:26 am
Posts: 20
Location: indramayu
thanks for sharing that's important to me

_________________
http://antonfkip.com
http://miss925.com


Top
  E-mail  
 
Posted: Fri Jul 24, 2009 7:45 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jul 16, 2009 1:42 pm
Posts: 32
These two lines have solved my problem! Thanks Alamgir99...

mysql_query(’SET CHARACTER SET utf8′);
mysql_query(”SET SESSION collation_connection =’utf8_general_ci’”);

_________________
http://viover60.no


Top
  E-mail  
 
Posted: Sat Oct 17, 2009 1:00 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat Oct 17, 2009 12:51 pm
Posts: 1
I don't understand this language,what it's saying?

_________________
SameSun Hostels in Canada


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group