1
What is the most appropriate way to return the dynamic content of a PHP script, loaded via include within a loop? Below are more details:
pagina1.php -> returns the name of the companies registered in a database
page.php2 -> returns the information of each company according to the ID passed to the page.
for {
$codigo_empresa = $registro['empresa_codigo'];
$empresa = $registro['empresa_nome'];
include pagina2.php
}
The problem is that the content returned from the page2.php is always the same, that is, it does include only once and during the loop, just repeats the value returned from the first record.
Detail: I need to return via include, because this page is used in other parts of the system.
I did the test with include and require and they all return the same result.
instead of using include pq does not use GET and passes the variable?
– Diego
So I actually use include to search for an HTML code and several other data from each company, and so I use Loop to send messages in bulk. When I did the bulk shipping, it worked perfectly, and now that I’m trying to do the bulk shipping, I’m facing this detail..
– Luis