I have a value like this
$id='11';
$value1= 'tb1,tb2,tb3,tb4';
$value2= 'th1,th2,th3,th4';
and all I want to do is insert it into MySql (via PHP) like this:
+---------+-------------+-------------+
| id | tb | th |
+---------+-------------+-------------+
| 11 | tb1 | th1 |
| 11 | tb2 | th2 |
| 11 | tb3 | th3 |
| 11 | tb4 | th4 |
+---------+------------+--------------+
I will appreciate any help I get.