PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
show databases;
Copy Clear
Copy Format Clear
<?php $conn =&$mysqli; $_POST["name"] = 'Test'; $_POST["description"] = 'Test description'; $_POST["releasedate"] = '2022-01-01'; $name = mysqli_real_escape_string($conn, $_POST["name"]); $description = mysqli_real_escape_string($conn, $_POST["description"]); $releasedate = mysqli_real_escape_string($conn, $_POST["releasedate"]); $sql = "INSERT INTO muvietable (name, description, releasedate) VALUES ('" . $name . "', '" . $description . "', '" . $releasedate . "')"; echo $sql;
Show:  
Copy Clear