Answer the question
In order to leave comments, you need to log in
How to carry out the entry of content into the database, which was added by the user himself on the site?
I started learning PHP a few months ago and then switched to the MySQL database, since then I have been learning them. The input and output of content to the database is clear to me, and I know how to do this through a mysqli_query query. But let’s just say that a user added news to the site, and it was the same news that was uploaded to the database, I don’t know how. I think the problem is in my SQL selection (Maybe I don’t know some commands, so far?). Or is there something to be done in php?
Answer the question
In order to leave comments, you need to log in
The order is this:
On the page you place an HTML form with fields like title, text, date, and so on for your needs. In the form action, you specify the script that will process this form. In the script, you do all sorts of checks on what the user has entered, and if everything suits you, you make a request to the database to add an entry.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question