posted 09-21-99 11:47 AM ET
Sounds like a job for SQL.I could probably help, but I am not sure exactly what you are trying to do. Are you only trying to print the top ten?
�i need help writing some code which two arrays one which holds the video name and another which holds the number of times it has been rented in the week beginning with the date input. �
This seems to indicate that the arrays are �pre-loaded� with the name and loan count. Is that correct?
�A query would then only select loans made in that time frame and sorts the loans in video code order.�
Does the first array have the video �name� or �code� or both or is �code� a third array? Why do you need a query (SQL?) if the arrays already have the required information or is this how the arrays get loaded? Why bother to sort it here?
�A loop would then read each selected record and search for the video code in the video array and then add one to the loan number in the loans array.�
Do all selected records have their loan count incremented?