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
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Thu Feb 12, 2004 2:44 pm
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 » Thu Feb 12, 2004 2:58 pm
if (($de_dust2[1] > 0) && ($de_dust2[3] == 0) && ($ de_dust2[2] == 0)){ //parse error here
u missed that $
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Thu Feb 12, 2004 2:59 pm
g0d... yay php haha
I looked at that code for liek an hour... better take a break
thanks for the help