Jump to content

duplicating rows in a table


plehmurof

Recommended Posts

Help  :'(

 

I am populating a table from information held in a mysql table and using

while ( $row = mysqli_fetch_array($result)) {

 

and this works well, but one of the fields is a number of the number items, there the row has to be repeated that many times.

 

Tried

while ($num = mysqli_fetch_array($number){

  for ($i=0; $i = $num['qty']; $i++) {

 

  while ($row = mysqli_fetch_array($result) {

-- body of the table here ---

}}}

 

Any help please

 

Link to comment
https://forums.phpfreaks.com/topic/203940-duplicating-rows-in-a-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.