You're getting that error because these two statements should really be only one statement:
mysql_query("INSERT INTO example
(word, translation) VALUES($res1[$tot], $res2[$tot] ) ");
or die(mysql_error());
Remove the first semi-colon, and the error should go away.




Reply With Quote