Click here to Skip to main content
16,001,870 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a table who saved all html body of pages.
Every row contains a body of a page.

Every body has the same div and display
Example:
<body>
<div id="tab1">...</div>
<div id="tab2">...</div>
<div id="tab3">...</div>
</body>


Is it possible to search from the div 2 "tab2", search context that contain inside that div?
Posted
Updated 11-Jun-13 4:25am
v2
Comments
Sergey Alexandrovich Kryukov 11-Jun-13 10:33am    
How is that related to MySQL? PHP?
—SA
Yafa Su 11-Jun-13 10:35am    
yes it's related to php. I have to retrieve it with php the info I want.
Sergey Alexandrovich Kryukov 11-Jun-13 11:01am    
From MySQL database? Then search the data with SQL query. Why showing your HTML? Work with data, not on-screen representation of data.
—SA

1 solution

Please see my comments to the question.

Work with data itself, not on-screen representation of data. If you are using MySQL to store data and a Web page as a front end, use SQL query for your text search, not HTML controls.

—SA
 
Share this answer
 
Comments
Yafa Su 11-Jun-13 11:56am    
ok
Sergey Alexandrovich Kryukov 11-Jun-13 12:29pm    
:-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900