Odd Parse Error
| From: | shaun | Date: | Mon, 24 Mar 2003 10:24:10 +0000 |
| Subject: | Odd Parse Error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-140819@lists.php.net to get a copy of this message | ||
Hi,
Using the following code i get a parse error for line 137, and i cant see
anything wrong with it, i would be very grateful for someones help here!
if ($num > 0){
if ($values[$i] == 0){
$query = "DELETE FROM WMS_Allocatations WHERE User_ID =
'".$_GET[user_id]."' AND Project_ID =
'".$fields[$i]."'";
}
} else {
if ($values{$i] != 0){ //line 137
$query = "INSERT INTO WMS_Allocatations (User_ID, Project_ID) VALUES
('".$_GET[user_id]."', '".$fields[$i]."')";
}
}
thanks in advance for your help