RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1260 | Replies: 3
Reply
Join Date: Apr 2005
Location: Kerala
Posts: 174
Reputation: hbmarar is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
hbmarar's Avatar
hbmarar hbmarar is offline Offline
Junior Poster

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

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2005
Location: Kerala
Posts: 174
Reputation: hbmarar is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
hbmarar's Avatar
hbmarar hbmarar is offline Offline
Junior Poster

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

  #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  
Join Date: Apr 2005
Location: Kerala
Posts: 174
Reputation: hbmarar is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
hbmarar's Avatar
hbmarar hbmarar is offline Offline
Junior Poster

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

  #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  
Join Date: Apr 2005
Posts: 19
Reputation: mediaphyte is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
mediaphyte mediaphyte is offline Offline
Newbie Poster

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:13 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC