hi to all,

please do suggest me y this error?


0063 $result = mysql_query($sql) or die(mysql_error());
0064
0065 $admine-mail = "admin@yoursite.com";
$adminpass = "admin";
$adminname = "Admin";

$sql = "INSERT IGNORE INTO cms_users VALUES (NULL, '$admine-mail', '$adminpass', '$adminname', 3)";
$result = mysql_query($sql) or die(mysql_error());

Error :
Parse error: syntax error, unexpected '=' in C:\apachefriends\xampp\htdocs\cms\cmstables.php on line 65

have checked commenting the line 64
have checked echo $sql..but

don't know what it is about.
please help me with this.
Hari

Sorry ..but i have solved it....but i would not like to close the thread as I believe i could say a few things i realized ...finding the error ...y?

1. Use naming/coding standards that are standard.
2.For ,try not to use -+ with variables[courtesy : my brother,Umesh]

his suggestion of avoiding using e-mail with e_mail did the trick for me.
Thanks brother.
3.Anybody new to coding can feel to contact me,for i would be glad to share
the naming / coding sstandards to document.
Hari

Well, you figured it out before I even woke up... GMT -5 for me.

It's typical to use an underscore. $this_for_example=mysql("SELECT example FROM demo WHERE timestamp=now()");

=) jc

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.