user insert into course as shown I want the course_limit to increment by 1 for that user
<p>Let's say I have two tables as shown:</p>

<p>user</p>

<blockquote>
  <p>id    plan   course_limit  username </p>
  
  <p>10                  0        ahmad</p>
</blockquote>

<p>note: plan is enum field containing '','a','b','c'.</p>

<p>course</p>

<blockquote>
  <p>id    user_id   username</p>
  
  <p>1       10        ahmad</p>
</blockquote>

<p>Now I want when a user insert into course as shown I want the course_limit to increment by 1 for that user so that I can apply a limit.</p>

<p>now i don,t want to use triggers as my hosting does not support so i want to use php and do this. plz help me.</p>
