Solved

Using Phpmyadmin to search for a field in a table

Posted on 2014-04-24
8
436 Views
Last Modified: 2014-04-24
Hello

i am somewhat familiar with phpmyadmin

Using Phpmyadmin phpMyAdmin - 2.11.11.3 MySQL charset: UTF-8 Unicode (utf8)

I have a large number of tables and I want to search the mysql database for an id.  Specifically ID 125.  The ID is unique for a specific bit of content I am looking for.  It's an id for an "article" in a Joomla site.  

Different tables have different structures, however I *think* the item I am looking for is as follows:

Table: blah_content  Field: id  Search term 125

If that doesn't get me what I am searching for there is another search I'd like help for

Table: blah_content   Field: asset_id    Search term: 125

If you can provide me the search syntax for those two hopefully I can find what I am looking for.

Thanks

Rowby
0
Comment
Question by:Rowby Goren
  • 3
  • 2
  • 2
8 Comments
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 40019829
Rowby: Are you open to the idea of a custom script to look for this information in all the tables?
0
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 40019833
SELECT * FROM blah_content WHERE 
id = 125 OR asset_id = 125

Open in new window


HTH,
Dan
0
 
LVL 9

Author Closing Comment

by:Rowby Goren
ID: 40019842
Thanks Dan for that instant response.  And I used it to find my elusive content item!

Rowby
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 9

Author Comment

by:Rowby Goren
ID: 40019844
Rowby: Are you open to the idea of a custom script to look for this information in all the tables?

Open in new window


Hi Ray, I missed your solution however Dan's answer got me right to the item id I was looking for!

That was probably the fastest EE response(s) I have had ever!

I think under a minute!

Thanks all!

Rowby
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 40019907
I think that if we could see the response times, I'd probably be in top 10, right behind Ozo :)

Glad I could help, Rowby!
0
 
LVL 9

Author Comment

by:Rowby Goren
ID: 40019934
:)
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 40019936
Well done, colleagues!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now