php - Is saving enormous user information into a MySQL table good if one wants to display it for later use? -


I have a file named discussion.php , where a form is located in this form , One user will enter the information, and the information will be posted on savedisc.php . Below is the code for discussion.php :

  & lt; Form action = 'savedisc.php' method = 'post' & gt; & Lt; P & gt; What would you like to discuss? & Lt; / P & gt; & Lt; Textarea name = 'message' rows = '15 'cols =' 40 '& gt; & Lt; / Textarea & gt; & Lt; Input type = 'submit' value = 'submit' / & gt; & Lt; / Form & gt;  

Once the user hits the submit button, the text the user typed is savedisc.php Should be saved through To wit. I will be connected to the database, and the user was typed in the texteras.

Now to display that information, the user who typed the text, I will be connected from the database to another file and show the appropriate content.

Some of my questions are as follows: should not I save it to the database? Because later on I have a large amount of data in my tables, is there another way to display information submitted by a user without the use of saving the database? Or am I okay? For example, the question I am posting now, is it actually saved in a database?

Thank you.

The database has to store large amounts of data and handle large amounts of transactions. So definitely yes

But if you are thinking of optimizing your database and saving some resources, then you can store the data that the user has just signed up and shown it without requesting a database. As you ask a question and it shows you again on stack overflow, you have a low transaction.

For example, your savedisc.php

  & lt ;? Php $ message = $ _POST ['message']; StoreInDB ($ message); // Some messages resonate the message for storing data; // This is useful when you want to immediately // that the information was entered to the user? & Gt;  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -