Page 1 of 1

Sql query to display [SIZE]

Posted: Fri Aug 26, 2005 7:18 am
by pryj
I'd like to run a query that would search the post table for [SIZE] bbcode.

This works to list all posts with my name in it. How would I modify it to search for [SIZE].

SELECT *
FROM post
WHERE pagetext
LIKE '%Andy%'
ORDER BY threadid DESC;

Re: Sql query to display [SIZE]

Posted: Sun Aug 28, 2005 7:04 am
by UNDERCOVER
[quote="pryj"]I'd like to run a query that would search the post table for [SIZE] bbcode.

This works to list all posts with my name in it. How would I modify it to search for [SIZE].

SELECT *
FROM post
WHERE pagetext
LIKE '%Andy%'
ORDER BY threadid DESC]

SELECT *
FROM post
WHERE [SIZE]
LIKE '%Andy%'
ORDER BY threadid DESC;


try that