The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need help with PhpMyAdmin search feature
Hi All,
I would like to use phpmyadmin to locate some records in the table "post" and column "pagetext". I want to search for: -- search starts below-- %% -- search ends above -- So basically it is two blank lines followed by %% Now how do I do that, I know how to use the search options, but what do I enter for the blank lines ? Thanks in advance for your help |
#2
|
|||
|
|||
Try %\\n\\n\%\%%
|
#3
|
|||
|
|||
Hi KH, thanks for the help.
I got no hits at all. In order to test I also tried: Like %...% -->\\n Like -->\\n Both no hits (10 000 posts forum). So it looks like the query is incorrect. |
#4
|
|||
|
|||
Yeah, it doesn't seem to work. \n should match a line break, I think. Playing around with it, it looks like phpMyAdmin adds the extra backslash for you, so it seems like \n\n\%\% should work (the % still need a backslash because it's the wildcard character). But when I tested it, nothing I tried would match the line break. Sorry, hopefully someone else knows.
|
#5
|
|||
|
|||
Thanks KH
Seems \n is not the right approach. I started to do a simple seach: That search finds texts with words like: Ennnnnn Looks like the query ignores the \ and just tries to find multiple concurrences of n. Also tried the query \n and compared it to n Has the exact number of hits (89008) |
#6
|
|||
|
|||
Hmm...yeah, I guess phpMyAdmin is escaping whatever is in that field, including backslashes, so there's no way to put in special characters (or if there is a way, I can't figure it out).
But maybe try this instead: use the SQL tab and sql like Code:
SELECT * FROM post WHERE pagetext LIKE '%\n\n\%\%%' or Code:
SELECT * FROM post WHERE pagetext LIKE '%\r\n\r\n\%\%%' |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|