Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

How 2 use ?
(1 viewing) (1) Guest
Go to bottomPage: 12345
TOPIC: How 2 use ?
#14886
Re:How 2 use ? 12 Years, 12 Months ago Karma: 0
Thank you very much!
The administrator has disabled public write access.
 
#14913
Re:How 2 use ? 12 Years, 12 Months ago Karma: 0
Code:

SELECT
SUBSTR(introtext,LOCATE('Name:',introtext) + LENGTH('Name:'),LOCATE('<br',introtext,LOCATE('Name:',introtext)) - LOCATE('Name:',introtext) - LENGTH('Name:')) AS Name,



Sorry again, this code works perfectly with the Latin alphabet but with Russian characters does not work, Could you modify the code.

Tried by your example to do this stuff, but it does not work:

Code:


MB_SUBSTR(introtext,LOCATE('russian symbols:',introtext) + LENGTH('russian symbols:'),LOCATE('<br',introtext,LOCATE('russian symbols:',introtext)) - LOCATE('russian symbols:',introtext) - LENGTH('russian symbols:'),'UTF-8') AS Name,

Last Edit: 2011/05/14 07:06 By wOrker.
The administrator has disabled public write access.
 
#14922
Re:How 2 use ? 12 Years, 12 Months ago Karma: 748
Use "CHAR_LENGTH" instead of "LENGTH". Code will look like:

Code:


SELECT
 SUBSTR(introtext,LOCATE('Name:',introtext) + CHAR_LENGTH('Name:'),LOCATE('<br',introtext,LOCATE('Name:',introtext)) - LOCATE('Name:',introtext) - CHAR_LENGTH('Name:')) AS Name,



Regards,
ARI Soft
The administrator has disabled public write access.
 
#14923
Re:How 2 use ? 12 Years, 12 Months ago Karma: 0
You guys are the best! Thank you!
The administrator has disabled public write access.
 
Go to topPage: 12345