i can tell you right now what's wrong, you won't have to test your SQL (although that ~is~ good advice -- always test outside of php first)
you have:
Code:
INSERT INTO plots(client_id) VALUES ($client_id) where plots.plot_id='$plot_id'
the INSERT VALUES statement does not allow a WHERE clause
you probably want UPDATE, not INSERT
check da manual for the correct UPDATE syntax
