我有问题。下面的代码,我清楚地选择了一个数据库,但是它仍然给我一个错误,说明我没有。谁能让我知道我做错了什么?
<?php
$nc = mysqli_connect("localhost", "264191", "adhiambo95");
if (mysqli_connect_errno())
{
echo "Sorry I couldn't connect to mysql: " . mysqli_connect_error();
}
mysqli_select_db($sc, "264191");
$sis = "INSERT INTO nogata_keywords ('keyword')
VALUE ('.$_GET[keyword]')";
if (!mysqli_query($nc,$sis))
{
die('Error: ' . mysqli_error($nc));
}
else
{
echo "This keyword has been added to the database.";
}
?>