Hi,
I have solutions to your three problems which may/may not work because I'm new to PHP too.
1) error inserting into interest table:
I don't think you can use a for loop inside the sql query. Try to reverse the process and use the sql query in the for loop instead.
2) Password problem. Instead of using PHP to verfiy the passwords to see if they match, why not use Javascript? you may use the following code to validate (using javascript). Note: Case sensitive comparision:
if(document.[form name].[password field name].value!=document.[form name].[confirm password field name].value){
alert("error message');
}
3) Most probably you are encountering a syntax error..To loop, is it FOR or FOREACH?
I have no problem using FOR and WHILE. And you didn't enclose with curly braces {} the statements in the FOR loop. Will this be causing the problem? PHP is very fussy when it comes to () and {}.
Regards,
Michael
19/12/2000 (dd/mm/yyyy)