On Fri, 29 Mar 2002, Eric Kilgore wrote: > What's wrong with this code that it would give this error? > > Parse error: parse error, expecting `','' or `';'' > > $query = "INSERT INTO tblUserInfo (UserID, Complex, Contact, Address, State, > City, Zip, Phone, > Fax, email, fee) VALUES ('".$UserID."', '".$Complex."', '".$Contact."', > '".$Address."', > '".$State."', '".$City."', '".$Zip."', '".$Phone."', '".$Fax."', > '".$email."', '".$fee."')"; > > I think I've been staring at it too long. I can't find it.
I don't see an error, but wouldn't it be easier (and faster) to write: $query = "INSERT INTO tblUserInfo (UserID, Complex, Contact, Address, State, City, Zip, Phone, Fax, email, fee) VALUES ('$UserID', '$Complex', '$Contact', '$Address', '$State', '$City', '$Zip', '$Phone', '$Fax', '$email', '$fee')"; without all the concatenation? miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php