I am receiving this error "Parse error: syntax error, unexpected 'TABLE' (T_STRING)" when trying to truncate a table before more data is entered.
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "members";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
TRUNCATE TABLE users;
{
header ("Location: order.php");
exit;
}
mysqli_close($conn);
?>