Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Integration of SQL Search Results Into An Existing HTML Template

by TJPride (Pilgrim)
on Sep 22, 2013 at 05:44 UTC ( #1055166=note: print w/replies, xml ) Need Help??


in reply to Integration of SQL Search Results Into An Existing HTML Template

1) Put a tag in your template where you want the SQL results to appear. Something like <SQLDATA>

2) Run the SQL query

3) Convert the results into a basic HTML table, with some ID or class that you can use to style the table using CSS. This table should be put into a variable.

4) Load the template file into another variable

5) Replace the tag from step 1) with the contents of your table variable.

6) print "Content-Type: text/html\n\n";

7) Print out your converted template.

  • Comment on Re: Integration of SQL Search Results Into An Existing HTML Template
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1055166]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2021-12-09 11:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (36 votes). Check out past polls.

    Notices?