How to store user new line input in SQL Database

Add Details about what you want to discuss…
I try many type of code.
How to store user new line input in SQL Database(PHP mysql admin)
i use this code .

<?php
include 'tcfdatabase.php';
$table=$_GET['table'];
$id=$_GET['id'];
$name=$_GET['name'];
$icon=$_GET['icon'];
$post=$_GET['post'];
$date=$_GET['date'];
$category=$_GET['category'];
$userid=$_GET['userid'];


$sql1 = "INSERT INTO $table (ID, Name, Icon, Post, Date, Category,UserID)
VALUES ('$id', '$name', '$icon', '$post', '$date', '$category', '$userid')";

if ($conn->query($sql1) === TRUE) {
  echo "true";
} else {
  echo "Error: " . $sql . "<br>" . $conn->error;
}


  $conn->close();
  ?>
1 Like

@Shivam_Yadav1 you can give try to this extension

sorry,
i can not use this