for ( $i=0 ; $i++ ) { $ing_itm = INSERT INTO `database`(`loquesea`) VALUES (`$esto`); $ret = db_query($ing_itm) or die(db_error()); }