$sql = "INSERT INTO toplist
(serverName, serverPassword, serverIp, serverPort, serverBanner,
serverShortDescription, serverDescription)
VALUES
('$_POST[serverName]', '$_POST[serverPassword]', '$_POST[serverIp]',
'$_POST[serverPort]', '$_POST[serverBanner]',
'$_POST[serverShortDescription]', '$_POST[serverDescription]')";
if (!mysql_query($sql, $con)) {
die('Error: ' . mysql_error());
}
echo "The server " . $_POST[serverName] . "," . $_POST[serverIp]
. " has been added.";
mysql_close($con);
How can I make it so that if the entry "serverIp" does not already exist, it will add it to the database, if it does already exist, then it doesn't do anything. Also, will this be case sensitive too? Will you be able to bypass it bY tYpInG LiKe tHiS?