how if I need is looping in php to insert the data for up to 6 rows. Because if I use this code it just only appear once insertion and not repeated.
while ($row=pg_fetch_row($sql1))
{
$sqlinsert="insert into rpt_printing_detail values ( '$row[0]','$row[1]','$row[2]','$row[3]','$row[4]','$row[5]','$row[6]','$row[7]','$row[8]','$row[9]')";
}
My code just insert one insertion :
insert into rpt_printing_detail values ( '201501', 'Detail Billing', '1', '1', '16397', '0', '0', '0', '0', '0' )