B
B
BEKa T2020-01-22 20:51:55
MySQL
BEKa T, 2020-01-22 20:51:55

How to write a large amount of data from inputs to MySQL?

There are ~207 inputs, they need to be sent via a socket to the backend and written to the database from there (also display with socket.emit the data that was received from the inputs on the page in real time)
I wanted to do this:
send the entire html code with the inputs and write the whole html code in the database (and as you already guessed, display this code on the page). But I could not get data from the inputs in html, and these inputs are displayed on the page, but I only wanted the text from the inputs.
I think I explained it clearly, well, if you ask Che :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EnDronist, 2020-01-26
@EnDronist

Use the jQuery library on the client: On the server, you can deserialize the JSON string, validate the data if necessary, and write the object to the database as a string.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question