» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2006, 02:34 PM
griffith griffith is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
griffith is on a distinguished road
Default character setting trouble

Hi

php multibyte functions support only iso-8859-6 (arabic) while
mysql supports only cp1256 (windows arabic).

i'm storing iso-8859-6 string in binary column and later i want to order by this column but this is not possible because mysql can not convert to iso-8859-6...

Anything i can do about this situation? -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 07-29-2006, 02:38 PM
divinepower divinepower is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
divinepower is on a distinguished road
Default

Try this out

store a portion of the field, let say the first 20 characters in a char or varchar field and then use that field to sort on.

Bye -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #3  
Old 07-29-2006, 02:40 PM
nchammer nchammer is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
nchammer is on a distinguished road
Default

Hey pal
There is one other way to do this

You can fetch the data from database, then put it in an array, and then sort it in the script before outputting it.
Doing this in PHP would be fast and easy, if you are able to let PHP sort correctly by the language used. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #4  
Old 07-29-2006, 02:43 PM
zinedine zinedine is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
zinedine is on a distinguished road
Default

Create another field in the table. A numeric field where one can enter a numeric value, indicating the sort order for the record.
It all depends on how much control you have over the database and the scripts. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Determining a Price of a 3 character Domain sss3d Domain Names Forum 0 02-24-2007 11:16 PM
Setting servers? Irvish Web Hosting Industry 1 01-13-2007 07:37 AM
setting up a reseller! Marlon Reseller Hosting Forum 2 12-25-2006 07:38 AM
trouble getting a response from the SOAP server jigsaw PHP Programming and Tips 1 08-22-2006 01:53 PM
character database- worldpress dippenar PHP Programming and Tips 1 08-14-2006 02:55 PM


All times are GMT. The time now is 08:43 PM.