Skip to main content

Insert multiple data

Insert multiple data from your database using While Loop in PHP and MySQL

Hi sourcecodester, Do you wish to insert multiple data to your database using While Loop? Will PHP and MySQL can do that. Just select the table you want to insert in another table then loop it using "While Loop". And just define a variable you want to insert to another table and call it to your insertion query. Then run it to your web browser. The multiple data will automatically add to your table