How to display HTML data from database?

How to display mysql in html..?

  • I have a dynamic FAQ in my website(ie admin can edit/delete/add faqs) and did this by putting it all on a mysql database with php. Now I want to take this data and display it in a html FAQ page, can anyone help me ??

  • Answer:

    You need to start the php tags in your html file and there you get the FAQ you wont with a query and then you just echo the variable containing the question and answer and along with them you echo the tags too. Like this echo "<h2>" + varQuestion + "<h2>";

Leah at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Huh ? Sounds like you did the hard part, but want help with the easy part.

adaviel

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.