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

  • SEARCH
  • Home
  • 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 3322264
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:09:40+00:00 2026-05-17T23:09:40+00:00

I have an Excel spreadsheet of some product data, (just a simple table) that

  • 0

I have an Excel spreadsheet of some product data, (just a simple table) that I want to put on the web (this isn’t serious, I’m just keen on creating my first database on the web).

I want to turn this spreadsheet into database table in MySQL. The columns are: ID, Name, Price and Quantity.

Then create the search page, link it to the database etc. I’m starting with a simple string search here, user types in product name or part of a product name, if it matches it will bring up results along with the other columns.

I’ve done my fair share of google, there are plenty of tutorials out there if anyone can direct me to one that is for absolute newbies that’ll be cool, thanks!

  • 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-05-17T23:09:41+00:00Added an answer on May 17, 2026 at 11:09 pm

    There’s really not enough to write a tutorial about.

    You create a form that submits to your search script.

    This script executes a SELECT query to find rows matching the search term, then displays them.

    mysql_connect('localhost', 'username', 'password');
    mysql_select_db('database name');
    
    $sql = "SELECT * FROM table WHERE product_name LIKE '%" . mysql_real_escape_string($_GET['search_query']) . "%'";
    
    $result = mysql_query($sql) or die("Error in query $sql: " . mysql_error());
    while ($row = mysql_fetch_array($result)) {
        echo "Product: " . $row['product_name'] . "<br />";
    }
    

    I highly recommend this book:

    http://www.sitepoint.com/books/phpmysql4

    It is written for someone in your situation, presumes no PHP or MySQL knowledge, and by the end of the book you’d consider putting up a database and making a page to show search results simple.

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

Sidebar

Related Questions

I have some data structured like this in an Excel spreadsheet: A B C
I have an excel spreadsheet based on a pivot table that is periodically updated
I have some code that takes input from and excel spreadsheet and imports it
In an excel spreadsheet, I have reference to a range of Row Headers, and
I update some cells of an Excel spreadsheet through the Microsoft Office OpenXML SDK
I've got a pre-existing Google spreadsheet. Each month I update this document. I've got
Need a little preliminary pointing at the right direction. I have a web page
I'm using NPOI to generate XLS spreadsheets. NPOI is an Excel Spreadsheet generation library/API
I have a barcode reader and bunch of books. For each of the books,

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.