Stupid parse error :S

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Stupid parse error :S

Post by John Cartwright »

I get this parse here.. check my comments to see which line it is.. I cant figure it out :s .. help plz .. :) ty

Code: Select all

<?php
		//de_dust2 equations		
		if ($de_dust2[0] = 1){		
			$de_dust2[0] = $de_dust2[0] - $de_dust2[2];
				if (($de_dust2[1] > 0) && ($de_dust2[3] == 0) && (de_dust2[2] == 0)){ //parse error here
					$dust2percent = 100;
					$dust2record = "$de_dust2[1] - 0 - $de_dust2[2]";
		}else{
					$dust2percent = $de_dust2[1] / ($de_dust2[3] + $de_dust2_[2]) * 100;
					$dust2record = "$de_dust2[1] - $de_dust2[3] - $de_dust2[2]"; }
?>
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

if (($de_dust2[1] > 0) && ($de_dust2[3] == 0) && ($de_dust2[2] == 0)){ //parse error here

u missed that $
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

g0d... yay php haha

I looked at that code for liek an hour... better take a break :)

thanks for the help
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

that's why we are here for :P
Post Reply