Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8554555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:54:34+00:00 2026-06-11T14:54:34+00:00

Let’s try to explain the title of my question to be the more concise

  • 0

Let’s try to explain the title of my question to be the more concise I can: I’m basically designing a static HTML website from scratch. Nothing to worry about here.

The point is that I’m trying to include some links that will retrieve some items (a product inventory) from a database (and therefore the site won’t be so ‘static’ anymore), as there’re > 300 products and creating an html for each one is not feasible.

After googling and reading several sites for days, the “easiest” solution I came up with is to use PHP and MySQL. Again, nothing to worry about. Just took my time for reading documentation and move along.

My question is more related about the correct workflow for integrating both worlds. Let’s see my idea in code:

This is one schematic example of the page where you can browse some products (e.g: product.html):

<html>
<head>
<title>My Site - These are our products</title>
</head>
<body>
    <!--Site goes here-->
    <a href="product_search_by_name.php">Search by name</a>
    <a href="product_search_by_color.php">Search by color</a>
    <!--rest of site goes here-->
</body>

</html>

Where the links

product_search_by_name.php
product_search_by_color.php

are actually a modified clone of the same page (product.html). This is, keeping same html code, plus the .php code embedded into it, as I want to have the DB results displayed into a div on that same page, keeping exactly same layout.

So, am I doing this right if I want to maintain the appearance of the whole website? I’m absolutely wrong from the base and should start again? Should I give up and work selling frappuchinos on a Star*ucks?

As a sample of the idea I want to achieve is the following: http://www.w3schools.com/tags/default.asp (when you click on the left menu bar, the center zone updates with the content). By the way, are they using AJAX on that website to update just the center zone, or I’m misunderstanding what is AJAX for?

I’m sure I’m missing something but I’m too confused to separate the sheep from the goats, so I’d thank a lot any tips you can give to me (and additional documentation on the internets to read as well).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:54:35+00:00Added an answer on June 11, 2026 at 2:54 pm

    There are two main ways to merge or migrate from static HTML to dynamic HTML (PHP, PERL, whatever).

    (1) One is to have most of the contest as HTML, and the stuff like inventory as dynamic.

    <html>
    <head>
    <title>My Site - These are our products</title>
    </head>
    <body>
      <h1>My Site - These are our products</h1>
    
      <?php
      // php code to retrieve links
      ?>
    
    </body>
    </html>
    

    (2) To have a full PHP site.

    <?php
    echo "<html>" . "\n";
    echo "<head>";
    echo "My Site - These are our products"
    echo "</head>";
    
    
    echo "<body>" . "\n";
      // php code to retrieve links
    echo "</body>" . "\n";
    
    echo "</html>" . "\n";
    ?>
    

    Many developers start by merging both HTML & PHP.

    I suggest to learn how to do a very simple but full php site, connect to a database, retrieve some records with a S.Q.L. query, display them as read-only text or links, and later you may change to the other HTML plus PHP way of doing things.

    There are several editors and tools to help develop in PHP, specially by looking for a PHP function, or just highlight HTML tags. Scintilla (Linux) or Notepad++ in windowze, its a very simple yet useful tool.

    Cheers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let me try to explain by example. Say website is hosted at example.com (NOT
Let me explain best with an example. Say you have node class that can
Let's take a common example how a haskell function can be called from a
Let say I have some code HTML code: <ul> <li> <h1>Title 1</h1> <p>Text 1</p>
Let me try to explain what I need. I have a server that is
Let me give an example and try to explain what I want to ask:
Let's say I have a table with a Color column. Color can have various
Let's say I can call a method like this: core::get() . What is the
Let say I've this URL: http://example.com/image-title/987654/ I want to insert download to the part
Let me explain what I am asking for by an example. Imagine I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.