Jump to content

Display data from MySQL


microbert

Recommended Posts

Yeah, that's what I figured. You're only looping over one result in the while loop each time, so there will only ever be one table row.

 

In order for this to work you either need to move the logic to the for loop or change the queries so that you are getting all of the rows at once.

 

Honestly, you need to go through that whole chunk of code and re-write it. You have a lot of queries inside loops inside loops inside loops.

$pieces is the data from the mysql field. this field it is has the item codes of the related items and they are seperated with a ";"

in the one that I am testing it have 8 items.

 

for example in the mysql filed it is as "code01;code02;code03;code04;code05;code06;code07;code08"

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.