I have an HTML interface that should render query results in the database (PHP + PDO (MYSQL)) how do I inject the results dynamically on the (pure) HTML screen? since the queries vary from user to user (one can consult "Tennis" another "dog").
The system works by following the following flow: the user accesses an HTML index page where he inserts the query, the query is sent to a .php
file that processes the query and returns the results, for an (pure) HTML page that will render the results of the query, it looks like this:
Inred:Thisisthediv
thatwillincludequeryresults(whichcanbevariedinquantity).
Ingreen:istheimagetobereturnedfromthedatabase(itsaddresswillbereturnedandinsertedintoanimgtag).
Inblue:theproductname.
TheHTMLoftheimageisasfollows:
<divclass="row">
<div id="conteudo" class="col-md-12 span7 text-center"><!-- START Video Content -->
<div class="video_block">
<a href="#" class="thumbnail">
<img src="../../images/temp/1.jpg" alt="produto"/>
</a>
<div class="caption">
<span class="video_title">Titulo</span>
<br />
</div>
</div>
</div>
</div>