thanks for help
I figured it out just before reading your reply, but I was doing it wrong way(I think).
I was building an array manually like: $id_arr = array(1, 2, 3, 4, 5, 6, etc. and then added WHERE id='".$id_arr[$i]."' in query
I got better idea while reading your comment
// code 1
foreach ($keywords as $number => $key){
mysql_query("UPDATE table_name SET column_name='".$key."' WHERE id='".number_format($number+1)."' ");
}
//code 2
for ($i = 0; $i <= 29; $i++) {
mysql_query("UPDATE table_name SET column_name='".$keywords[$i]."' WHERE id='".number_format($i+1)."' ");
}
Is there anything wrong with these???
Which one of these would be more efficient???