Hello
i am trying to automate an Insert command but i need to limit it to a number stored on an array
for example:
"insert into staff_stud_alloc SELECT top_stud.stud_id, top_stud.staff_id, top_stud.top_id
from top_stud, topic, student, staff, top_staff
where
student.stud_id = top_stud.stud_id and......
level = 'a' and top_pref = '1' limit '$row2[$j]'";
if i use normal variables like 1,2 it works....but does not work on that....
does anybody know how to do it?
thanks