fhumanes 11/17/2023 | |
In the first element the cycle of the "result set" of the Query ends. To start it again, you have to return to the Query. Regasrds, |
C
|
cristi 11/18/2023 |
...you are fetching the array from the inner loop query only once since the outer loop executed. You're not running the db_fetch_array query every time though your $data loop - it's still at the end of the query results when you start every iteration after the first. So, take all the results from $data1, put them into an array, and iterate over that for each of your results. //First lool OR you could use mysqli_fetch_all() instead of db_fetch_array inner loop and have all the query results in an array, remove the inner while loop and do a foreach loop on the fetch_all() returned array inside the outer (single now)while loop.... |
P
|
PK author 11/19/2023 |
Thank you both. Thanks again |