简体   繁体   中英

how to retrieve images from database and display in div using java script

Hii,

I want to retrieve data from sql database and display dynamically in div using javascript can anyone please help me on this...

Thanks...

You can not do that using only javascript, as sql queries should be done using server-side technology.

First, you have to find out what kind of web hosting do you have or can afford:

  1. Web Hosting. Usually allows you to use PHP and MySQL.
  2. Virtual Private Server, Dedicated Server. Lets you install anything you want on the host. But, it's usually 5-10 time more expensive.

I suppose you will take simple PHP Web Hosting, as it is cheaper and more avialable.

Here you go with a detailed beginner manual on getting data from MySQL with PHP and providing it to your page: http://www.freewebmasterhelp.com/tutorials/phpmysql

Generally, I can't give you more information than this, as it will same as writing a book on using PHP and MySQL. So I suppose you read that link I gave you, and open separate questions if you have some other specific questions.

If, by any means, you do not want PHP, then you should search for relative documentation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM