This is the table structure in mysql:
create table test(
a1 char,
a2 char,
a3 char,
a4 char,
a5 char,
a6 char,
a7 char,
id unsigned int primary auto_increment);
This is the php code to insert LOTS of records into the table:
for($a1=0;$a1<=9;$a++){
for($a2=0;$a2<=9;$a++){
for($a3=0;$a3<=9;$a++){
for($a4=0;$a4<=9;$a++){
for($a5=0;$a5<=9;$a++){
for($a6=0;$a6<=9;$a++){
for($a7=0;$a7<=9;$a++){
mysql_query("insert into test set a1=$a1,a2=$a2,a3=$a3,a4=$a4,a5=$a5,a6=$a6,a7=$a7" )
}
}
}
}
}
}
}
this code would take a very long time to finish inserting records and IIS gives a CGI Timeout Error. I'd like to know how I could solve this problem. I'll be thankful for your reply.