Well Hello guys
i was working in my website and made code i really dont know whats wrong it … it just doesn’t work
<?php
if (isset($_POST[‘submit’])) {
$con = mysql_connect(“localhost”,“root”,"");
if (!$con) {
die("Can not connect: " .mysql_error());
}
mysql_select_db(“topic”,$con);
$sql = “INSERT INTO news (title,text,link) VALUES (’$POST[title]’,’$POST[text]’,’$POST[link]’)”;
mysql_query($sql,$con);
mysql_close($con);
}
?>
im getting thes Errors:
Notice: Undefined variable: POST in C:\xampp\htdocs\admin.php on line 10
Notice: Undefined variable: POST in C:\xampp\htdocs\admin.php on line 10
Notice: Undefined variable: POST in C:\xampp\htdocs\admin.php on line 10
Line 10: $sql = “INSERT INTO news (title,text,link) VALUES (’$POST[title]’,’$POST[text]’,’$POST[link]’)”;