Hello I'm writing PHP and mysql. If I want to select then insert to database, I will
- step1.Select from table
- step2. mysqli_fetch_array and contain to variable such as $foo
- step3. INSERT INTO MyTable (firstname) VALUES ('$foo')"
Is it possible that I select then insert without fetch from database?