You can simulate "weak" transactions. For many cases is it sufficient to ensure your
data integrity.
1) A lot of INSERT is probably safe, because you can insert houndreds or thousands of rows per second. A connection loss in this interval is very improbably.
2) Make a flag into your rows with a unique id for this "transaction". F.e. transid = getmypid(); in PHP.
Insert (transid,....) into your_table;
...
...
If your Insert-sequence is successful, you can continue your program. Otherwise you have to delete these rows with this transid.
MySQL runs atomic operations.
After this you can switch these inserts free with only one UPDATE-statement. UPDATE your_table set OK= 1 where transid=$transid