este es mi codigo.... pero cuado se ejecuta me da un error
Catchable fatal error: Object of class stdClass could not be converted to string in /data/members/free/tripod/es/e/n/r/enredjuanjose/htdocs/procesardatos.php on line 21
Código php:
Ver original<?php
include("conex.php");
$link=Conectarse();
$clave=$_GET['clave'];
if ($clave=='noticia') {
$usuario= $_SESSION['usuario'];
$date=$_GET['fecha'];
$dia=$fecha[0];
$mes=$fecha[1];
$ano=$fecha[2];
$lafecha=$ano.'-'.$mes.'-'.$dia;
$noticia=$_GET['noticia'];
mysql_query("insert into noticias (noticia_id,noticia_fecha,noticia_texto,noticia_usuario) values ('$id','$lafecha','$noticia','$usuario')",$link); echo 'noticia ingresada exitosamente';
header("Location : admin.php"); }
?>
No tengo ni la mas minima idea!!! para mi el cadigo esta bien