homepage Welcome to WebmasterWorld Guest from 54.204.141.129
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
little help with sql statement
trying to add strlen to statement
weddingm




msg:4481992
 2:28 pm on Aug 5, 2012 (gmt 0)

Hi,


Is it possible to add ad strlen statement into a sql statement?

Example:
$sqlstatment="SELECT * FROM table WHERE strlen(xyzvalue)>2 AND value LIKE '%verified%'";

Thanks!

 

londrum




msg:4481993
 2:38 pm on Aug 5, 2012 (gmt 0)

try using CHAR_LENGTH(xyzvalue)>2

weddingm




msg:4481997
 4:12 pm on Aug 5, 2012 (gmt 0)

Thanks, that was a bone head mistake.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved