Is there any way that I can make it so when someone clicks save on a textarea for the first time, it inserts it into the database and then anytime they click that save button after, it updates the row it has just created and doesn’t insert a new row every time they update the same textarea?
Guessing this one is any easy thing just really not sure how you would do it.
Thanks in advance.
Just check if the user has a row in the table, if they do (
$res->num_rows > 0) update their row, else insert a new row.