var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Insert If
I have, lets say two tables, one Course, and the other Student.
How do I prevent the student from being able to register for more than 10 classes?
You would have to perform a query in your application beforehand since MySQL does not support constraints.
LOCK TABLE course
SELECT COUNT( * )
WHERE studentid = $someid
IF count > 9
UNLOCK TABLE course