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 6579307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:52:56+00:00 2026-05-25T15:52:56+00:00

I´m starting with MySQL developing and consider to make my own e-commerce site. If

  • 0

I´m starting with MySQL developing and consider to make my own e-commerce site.

  1. If I want to store customer´s wish list in a table should I do it, like first column has user id and second has product ids separated like product0|product1|product2 or is there some more effective way to do this in MySQL?
  2. Should I store the user details forever, or remove them when the order has been processed?
  3. Is this enough secure function to take off dangerous characters from user inputs:

    function siisti($str){
    $str = strip_tags($str);
    $str = htmlentities($str);
    $str = trim($str);
    $str = htmlspecialchars($str);
    $str = mysql_real_escape_string($str);
    $str = str_replace(array("ä", "ö"), array("ä", "ö"), $str);
    return $str;
    }

  4. Is there any other that I should look when creating it?

EDIT:
One more question
Is this good way to do the pages:

up.php

Content to be inserted top of all pages


 | Some Site
etc.

down.php

Content to be inserted footer of all pages
some copyright notes etc.
<./body>
<./html>

somepage.php

i.nclude("up.php");
some content here

In some reason the code handling does not work at all! So just click edit to see what I have as code. This bug should really fixed in this site.

  • 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-25T15:52:56+00:00Added an answer on May 25, 2026 at 3:52 pm
    1. Use a table with columns customer and product and insert multiple rows for each customer – one for each product they own.

      +-----------+----------+
      | customer  | product  |
      +-----------+----------+
      | customer0 | product0 |
      | customer0 | product1 |
      | customer0 | product2 |
      | customer1 | product2 |
      | customer2 | product0 |
      +-----------+----------+
      
    2. In general, do not delete rows. Just mark them as processed. This allows you to audit the system.

    3. Use mysql_real_escape_string or parameterized queries when accessing the database. Use HTML escaping functions when writing HTML. There is no such thing as “dangerous characters”, only “dangerous programming”. Never try to write “cleaning” functions yourself. Using generic cleaning functions makes you lazy. You won’t understand what you are doing and that will lead to mistakes.

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

Sidebar

Related Questions

I want to make two MySQL records in two different tables and the goal
I'm currently developing a microblog type application. I'm using Rails3 and MySQL. I'm starting
In MySQL, how can I retrieve ALL rows in a table, starting from row
I'm just starting to use mysql, and I'm basically using it to store and
Hi everyone I'm trying to insert 600 rows in a MYSQL table starting from
I am starting to use MySQL with JDBC. Class.forName(com.mysql.jdbc.Driver); conn = DriverManager.getConnection(jdbc:mysql:///x, x, x);
I'm starting to develop an application using MySQL and although I've developed apps before
I have been starting to write some reasonably large and or confusing MySQL queries
I'm having trouble starting a transaction with Hibernate and MySQL while running in JUnit.
I am just starting to investigate optimization for my MySQL database. From what I'm

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.