0

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

2
Contributors
3
Replies
4
Views
12 Years
Discussion Span
Last Post by mediaphyte
0

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

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

0

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

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.