You have a curly brace, where you should have a square bracket: > if ($values{$i] != 0){ //line 137
if($values[$i]) { James "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php