我一直在尝试在我的数据库中添加一行,但无论我做什么,我都会不断收到相同的错误。错误是 Parse error: syntax error, unexpected T_STRING 。这是我的代码:
<!DOCTYPE html>
<html>
<body>
<?php
$con=mysqli_connect("mysql5.000webhost.com","********","******","*******");
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
//Connecting to the Database works
INSERT INTO test (`1`, `2`, `3`, `4`) VALUES (\'11\', \'11\', \'11\', \'11\');
mysqli_close($con);
?>
</body>
</html>