$peri=$_POST['per'];
$enca=$_POST['enc'];
$noti=$_POST['not'];
$dia=date("d");
$mes=date("m");
$ano=date("Y");
$conectID = mssql_connect("CTEI-PRESARIO","Administrador","12345");
mssql_select_db("ccp_usr");
mssql_query("INSERT INTO news(n_enca,n_peri,n_info,n_dd,n_dm,n_da)
VALUES ('".addslashes($enca)."', '".addslashes($peri)."', '".addslashes($noti)."', '".addslashes($dia)."', '".addslashes($mes)."', '".addslashes($ano)."')");
?>
me marca estoo-->>
Warning: mssql_query() [function.mssql-query]: message: Line 2: Incorrect syntax near '\'. (severity 15) in C:\xampplite\htdocs\guarda_noticias.php on line 18
Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampplite\htdocs\guarda_noticias.php on line 18