<?php for ( $i=1; $i<181; $i++ ){ $md5 = substr(md5(time())); mysql_query(" UPDATE firma_kaydi SET firmano = '".$md5."' where id='$i' "); } ?>