Status
Not open for further replies.

Chris2k

Banned
Banned
901
2009
17
0
straght to the point:

how to say;
PHP:
$find = 'select type from table'

if(table field uses lowercase chars) {
    // do this shit
}
 
7 comments
what's the
PHP:
return for

cant i do:

PHP:
$frind = 'select type from table where strtolower(blah) or strtolower(blah) or strtolower(blah) or strtolower(blah) or strtolower(blah) or strtolower(blah) or strtolower(blah) or strtolower(blah) or strtolower(blah)';
 
i wanna find just the types that exist and are lowercase eg:

app, movie, tv, music, etc. << lowercase words in the type field only, ignore these:

App, Movie, TV, Music etc. << they have an uppercase letter, cos i wanna delete only lowercase words........
5

---------- Post added at 10:48 PM ---------- Previous post was at 09:11 PM ----------

just tried:
PHP:
 IN ('app', 'music', 'tv', 'movie', 'template', 'ebook', 'xxx', 'mobile', 'game', 'stream')

not good, delete all lower nnn uppercase.
 
i wanna find just the types that exist and are lowercase eg:

app, movie, tv, music, etc. << lowercase words in the type field only, ignore these:

App, Movie, TV, Music etc. << they have an uppercase letter, cos i wanna delete only lowercase words........
5

---------- Post added at 10:48 PM ---------- Previous post was at 09:11 PM ----------

just tried:
PHP:
 IN ('app', 'music', 'tv', 'movie', 'template', 'ebook', 'xxx', 'mobile', 'game', 'stream')
not good, delete all lower nnn uppercase.
In that case, use this to select:
PHP:
$query = "SELECT * FROM table WHERE type REGEXP '^[a-z]+'";
 
that is still selecting lower n uppercase m8, sql "LIKE" is CASE insensitive ass Put9in siad.............

SELECT * FROM wcddl_queue WHERE type LIKE ('app', 'music', 'tv', 'movie', 'template', 'ebook', 'xxx', 'mobile', 'game') = n0t working.
 
Status
Not open for further replies.
Back
Top