www.webdeveloper.com
Results 1 to 5 of 5

Thread: Databases

  1. #1
    Join Date
    Feb 2014
    Posts
    1

    Databases

    Hello,

    I am still learning my way around php and using it to connect to databases.

    For the site I am building I wanted to include 360 view gallery for each of the products on the site.

    However, I do not know how to store the product images in a database, along with product name etc. And then put these images into the gallery so the user can move round the product.

    Is this even possible???

    Here is a link to the gallery I will be using:http://www.ajax-zoom.com/examples/example15.php


    Thank you

  2. #2
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    660
    Have you read the documentation and reviewed the samples this ajax-zoom product refers to?

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,244
    I generally discourage storing the actual image in the DB, as this puts an unnecessary strain on the DB connection (passing all that data around in query results). Typical usage is to store the image on the web server file system (it is just a file, after all), and store the file name (and directory if needed) in the database, along with any other data (title, description, date/time, etc.).
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  4. #4
    Join Date
    Jan 2014
    Posts
    90
    A database is an organized collection of data. The data are typically organized to model relevant aspects of reality in a way that supports processes requiring this information. For example, modeling the availability of rooms in hotels in a way that supports finding a hotel with vacancies.

  5. #5
    Join Date
    Mar 2014
    Posts
    1
    Don't waste your time use EDFP library.
    Now is very simple to display and edit ( in different ways: text , textarea, select , radio button, date , slider, checkbox, switch on/off button, map, video, colorpicker, password, image, file, html editor ) every field you want from mysql database with EDFF or EDFP library.

    1 Include EDFF or EDFP ( Edit Database Field PRO ) library into your project.

    2 Just generate code with WDH CodeGenerator.

    You can download EDFF or EDFP library and find CodeGenerator here : http://codegenerator.wdh.im

    You can find live demo here : http://labs.wdh.im/example.php

    Hope that help you !

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles