I have this error,
Any ideas before I jump off a bridge lol
Warning: mysqli::prepare() [mysqli.prepare]: (42000/1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc) VALUES (?, ?, ?)' at line 1 in /var/www/test/records.php on line 170
ERROR: Could not prepare SQL statement.
Here is the code:
if ($stmt = $mysqli->prepare("INSERT URL (page, title, desc) VALUES (?, ?, ?)"))
{
$stmt->bind_param("ss", $page, $title, $desc);
$stmt->execute();
$stmt->close();
}
// show an error if the query has an error
else
{
echo "ERROR: Could not prepare SQL statement.";
}