Im storing some html code in a mysql database . This code is then displayed on the page .
I have setup an editor where a user can edit the code and save it back to the database . This updates the page.
The problem im having is that when its updated , it deletes parts each time.
mysql:
mysqli_query($connection, "UPDATE website_text SET home = '".$_POST['home']."'");
editor:
<textarea class="form-control" name="home" id="home" value="<?php echo $data['home']; ?>" required></textarea>