Jump to content

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"

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.