Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/01/2012, 17:29
daxxdj
 
Fecha de Ingreso: abril-2011
Mensajes: 41
Antigüedad: 15 años, 6 meses
Puntos: 2
INSERT - No consigo que funcione!

Código PHP:
<?PHP

$name 
= $_REQUEST["name"];
$mail = $_REQUEST["mail"];
$coment = $_REQUEST["coment"];
$idimg = $_REQUEST["idimg"];

$intro = (NULL . ", " . $idimg . ", " . $name . ", " . $coment . ", " . $mail);

$conexion = mysql_connect("localhost", "XXXXXX", "XXXXXX");
mysql_select_db ("daxx13_lfdao");
$intro = mysql_query ("INSERT INTO comentarios (idcom, idimg, nombre, comentario, email) VALUES (" . $intro . ")") or die("error!");

?>
He probado muchas combinaciones (llevo 2 horas de probar y probar) y no he conseguido insertar NADA. Una ayudita... :)

Gracias!