Ask coding questions

← Back to all posts
Sql and HTML questions
ia13ru (43)

How would I put some SQL data on a HTML page?

Comments
hotnewtop
InvisibleOne (2683)

Do you mean something like this:
HTML:

<p id='data'></p>

JS:

sql_data = 'bla bla bla bla';
document.getElementById('data').innerHTML = sql_data;
ia13ru (43)

@InvisibleOne Thanks for the tip, but I need to know how to connect sqlite to javascript first, and if this is not possible how to use a compromise