parser error saying '='..plz help me...

Reply

Join Date: Apr 2005
Posts: 183
Reputation: hbmarar is an unknown quantity at this point 
Solved Threads: 0
hbmarar's Avatar
hbmarar hbmarar is offline Offline
Junior Poster

parser error saying '='..plz help me...

 
0
  #1
Apr 14th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 183
Reputation: hbmarar is an unknown quantity at this point 
Solved Threads: 0
hbmarar's Avatar
hbmarar hbmarar is offline Offline
Junior Poster

Re: parser error saying '='..plz help me...

 
0
  #2
Apr 14th, 2005
have checked commenting the line 64
have checked echo $sql..but

don't know what it is about.
please help me with this.
Hari
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 183
Reputation: hbmarar is an unknown quantity at this point 
Solved Threads: 0
hbmarar's Avatar
hbmarar hbmarar is offline Offline
Junior Poster

Re: parser error saying '='..plz help me...

 
0
  #3
Apr 14th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 19
Reputation: mediaphyte is an unknown quantity at this point 
Solved Threads: 0
mediaphyte mediaphyte is offline Offline
Newbie Poster

Re: parser error saying '='..plz help me...

 
0
  #4
Apr 16th, 2005
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC