1
slyss
Len in mysql
  • 2006/11/7 14:00

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


i need to know where i mistake...

i have do a query:

$sql "SELECT s.*, t.* FROM prefix_".$directory."_photos s, prefix_".$directory."_text t WHERE s.lid=t.lid AND (t.description LIKE '%Stefano%') AND [color=FF0000]((LEN(t.description)) > 900)[/color] ORDER BY rand() LIMIT 1";


The red text is mistake...

how i can solve it?

thanks a lot
[size=x-large]2008 Xoops Book[/size]

2
christian
Re: Len in mysql
  • 2006/11/7 14:11

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


Look string functions in this official documentation.

3
slyss
Re: Len in mysql
  • 2006/11/7 18:02

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


mmmmm i haven't understand my error....
[size=x-large]2008 Xoops Book[/size]

4
Bender
Re: Len in mysql
  • 2006/11/7 18:09

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Just guessing:

Use Length instead of Len ?
Sorry, this signature is experiencing technical difficulties. We will return you to the sheduled signature as soon as possible ...

5
slyss
Re: Len in mysql
  • 2006/11/7 21:30

  • slyss

  • Quite a regular

  • Posts: 343

  • Since: 2006/1/26


Quote:

Bender wrote:
Just guessing:

Use Length instead of Len ?


yesssss

AND (LENGTH(t.description) > 100)


thanksssssssss
[size=x-large]2008 Xoops Book[/size]

Login

Who's Online

322 user(s) are online (293 user(s) are browsing Support Forums)


Members: 0


Guests: 322


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits