Page 1 of 1

Stupid parse error :S

Posted: Thu Feb 12, 2004 2:44 pm
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]"; }
?>

Posted: Thu Feb 12, 2004 2:58 pm
by Cruzado_Mainfrm
if (($de_dust2[1] > 0) && ($de_dust2[3] == 0) && ($de_dust2[2] == 0)){ //parse error here

u missed that $

Posted: Thu Feb 12, 2004 2:59 pm
by John Cartwright
g0d... yay php haha

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

thanks for the help

Posted: Thu Feb 12, 2004 3:04 pm
by Cruzado_Mainfrm
that's why we are here for :P