Cinergy2050 Posted December 4, 2010 Share Posted December 4, 2010 I'm sure I'm just doing something stupid, can anyone tell me why the following would result in an error? create trigger d07_member_approval_insert after insert on d07_member_approvals for each row begin update jos_community_fields_values set value=1 where jos_community_fields_values.user_id=NEW.applicant and jos_community_fields_values.field_id=31; update jos_users set usertype="Clan Member" where id=NEW.applicant; end; The error I get is: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 10 Quote Link to comment https://forums.phpfreaks.com/topic/220631-insert-trigger-help-please/ Share on other sites More sharing options...
fenway Posted December 5, 2010 Share Posted December 5, 2010 I'm guessing it's a delimeter issue. Quote Link to comment https://forums.phpfreaks.com/topic/220631-insert-trigger-help-please/#findComment-1143292 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.