Hello.
This is my first post and I’d like to say I’m a beginner in PHP. This is my first attempt to begin a project in php and I’m getting this erros message:
Parse error: syntax error, unexpected '","' (T_CONSTANT_ENCAPSED_STRING) in C:\xampp\htdocs\Foro1.php on line 25
This is my HMTL:
[code]
Untitled DocumentPrueba de insercion de datos en SQL:
Nombre:
E-Mail:
Nickname:
[/code]
And the PHP that goes right below :
[php]<?php
$con = mysql_connect(“localhost”,“root”,“mypass”);
if (!$con)
{
die('Could not connect: ’ . mysql_error());
}
mysql_select_db(“dja_forumtest”, $con);
mysql_query(“INSERT INTO catusers (nombre,email,nickname)
VALUES (1,”.$nickname",“getdate()”,".$nombre",".$email")";
?>[/php]
Now, as you can see I’m trying to do a very simple page. I’m just trying it a bit. I understand the error, as I’ve been reading about it for an hour but I can’t find the unexpected ‘,’.
I would appreciate any input at all.
Thank you!