Cita:
este es el codigo que manda el submit:Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'XXXXXXXXXX'@'212.227.114.101' (using password: YES) in /homepages/18/XXXXXXXX/htdocs/script/procesanoticia.php on line 8
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /homepages/18/
XXXXXXXX/htdocs/script/procesanoticia.php on line 10
Fatal error: Call to undefined function mysq_query() in /homepages/18/XXXXXXXXX/htdocs/script/procesanoticia.php on line 12
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /homepages/18/
XXXXXXXX/htdocs/script/procesanoticia.php on line 10
Fatal error: Call to undefined function mysq_query() in /homepages/18/XXXXXXXXX/htdocs/script/procesanoticia.php on line 12
Código PHP:
<?
$titulo=$_POST[titulo];
$autor=$_POST[autor];
$categoria=$_POST[categoria];
$articulo=$_POST[articulo];
$connect=mysql_connect("server","nombre-bd","pass");
mysql_select_db("nombre-bd",$connect);
mysq_query("insert into noticias(titulo,autor,categoria,articulo,fecha)
values('$titulo','$autor','$categoria','$articulo',NOW()",$connect)
?>