Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Data from MySQL database on site

Featured Replies

Hi all

 

I have created my site as .HTML not sure if this was the right thing to do, I have been out of touch with creating websites for serval years now and have never created anything which is interactive to the user.

 

I am now fiddling around with a MySQL database which hold 'products'.

 

How can I create individual product pages for each record in my MySQL database? By only creating one page (if that makes sense). Like Amazon, all information is pulled from a database, they dont manually make each product page, thats what I'm getting at :pardon:

 

Also how do I get certain products to appear on the homepage?

 

Is it a good idea to hold images such as jpeg files in a MySQL database? If not how would I save the products image?

 

I have tried searching the internet for the answers, I am probably not using the correct termanology.

 

I appreciate any help given

 

Thanks, Dan

I'm no expert but i will have a shot at this. Firstly: Problems with storing images in MySQL, it would probably be best to have the images in a directory on your server and then just 'reference' them via the URL in your database.

 

For dynamic pages you have on page and then have it respond with content based on variables that you pass it. See here for a start. Here is a 'single page' script that i am working on that generates dynamic content based on variables passed to the page via the URL.

 

HTH.

 

:D

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.