0

Hii,

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

Thanks...

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

okayy thanks can you please give code snippet so that ill get some idea how to go ahead....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.