If you have a server that runs PHP use PHP to fetch data from the database
Any serverside language you have on your server will do.
Is there any reason you want js to output data to the webpage instead of using regular html?
hi first thank u for ur response:)
second i think there's a miss understanding between us..
the PHP script will fetch the data from the DB and bcoz when u store multiple lines the DB will store as a single line so when u retrive it it will be in single line and not in the original format..
so my idea is to ask the user to seperat the lines with comma "," so when the data is fetched from the server, the JS on the Client side or the server will reconise the commas "," and interperate it as a<br/> so the data will be formated the same way the user inserted it
the idea is i'm planning to create a food reciepe web site for a friend of mine and he can insert the reciepes using an admin page then the users can view his reciepe